Skip to content

Commit

Permalink
updated login url and pre commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhwanis-crest committed Jan 9, 2024
1 parent db0d34a commit 42b53f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions splunk_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __new__(cls, val1, val2=None):
return tuple.__new__(RetVal, (val1, val2))


class SplunkConnector(phantom.BaseConnector):
class SplunkConnector(BaseConnector):

ACTION_ID_POST_DATA = "post_data"
ACTION_ID_RUN_QUERY = "run_query"
Expand Down Expand Up @@ -1447,7 +1447,7 @@ def handle_action(self, param):
password = getpass.getpass("Password: ")

if (username and password):
login_url = BaseConnector._get_phantom_base_url() + "login"
login_url = SplunkConnector._get_phantom_base_url() + "login"
try:
print("Accessing the Login page")
r = requests.get(login_url, verify=verify, timeout=consts.SPLUNK_DEFAULT_REQUEST_TIMEOUT)
Expand Down

0 comments on commit 42b53f7

Please sign in to comment.