Skip to content

Commit

Permalink
pre commit install
Browse files Browse the repository at this point in the history
  • Loading branch information
mctonderski-splunk committed Jun 17, 2024
1 parent 61958ac commit 3b9c584
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jira_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self):
self._jira = None
self._timezone = None

def _base_url(self):
def initialize(self):

config = self.get_config()

Expand Down Expand Up @@ -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((
Expand All @@ -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}"
Expand Down
Binary file removed wheels/py3/PyJWT-2.6.0-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/py3/beautifulsoup4-4.9.1-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/py3/jira-3.5.0-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/py3/packaging-24.0-py3-none-any.whl
Binary file not shown.
Binary file removed wheels/py3/soupsieve-2.5-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/shared/oauthlib-3.1.0-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/shared/pbr-5.4.4-py2.py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/shared/pytz-2021.1-py2.py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed wheels/shared/six-1.16.0-py2.py3-none-any.whl
Binary file not shown.

0 comments on commit 3b9c584

Please sign in to comment.