diff --git a/jira_connector.py b/jira_connector.py index c80d9ef..cc334f3 100644 --- a/jira_connector.py +++ b/jira_connector.py @@ -492,11 +492,11 @@ def _list_projects(self, param): return action_result.set_status(phantom.APP_SUCCESS) - def _get_base_url(self, url): + def _get_base_url_from_url_path(self, url): parsed_url = urlparse(url) return f"{parsed_url.scheme}://{parsed_url.netloc}" - def _update_base_url(self, url, new_base): + def _update_base_url_in_url_path(self, url, new_base): parsed_url = urlparse(url) new_parsed_base = urlparse(new_base) updated_url = urlunparse(( @@ -512,9 +512,9 @@ def _validate_and_update_custom_fields_url(self, custom_fields): for value in allowed_values: if 'self' in value: self_url = value['self'] - base_url = self._get_base_url(self_url) + base_url = self._get_base_url_from_url_path(self_url) if base_url != self._base_url: - value['self'] = self._update_base_url(self_url, self._base_url) + value['self'] = self._update_base_url_in_url_path(self_url, self._base_url) return custom_fields, None except KeyError as e: return False, f"Key error: {e}"