From 42b53f76d8e7cf8594fb3d6443b338c73fa5f96f Mon Sep 17 00:00:00 2001 From: dhwanis-crest Date: Tue, 9 Jan 2024 14:27:44 +0530 Subject: [PATCH] updated login url and pre commit changes --- splunk_connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/splunk_connector.py b/splunk_connector.py index af7aad7..3189124 100644 --- a/splunk_connector.py +++ b/splunk_connector.py @@ -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" @@ -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)