Skip to content

Commit d4d3d2c

Browse files
committed
Remove named argument enforcement for python2
1 parent 20f22c8 commit d4d3d2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/splunkversioncontrol_rest_restore.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
class SVCRestore(splunk.rest.BaseRestHandler):
6161

62-
def query_back_for_user_and_permissions(self, requestingAddress, authorization_token, *, sslVerify):
62+
def query_back_for_user_and_permissions(self, requestingAddress, authorization_token, sslVerify):
6363
headers = { "Authorization" : authorization_token }
6464

6565
#Run a query back against the source system to check the username/role
@@ -257,7 +257,7 @@ def handle_POST(self):
257257
self.runHttpRequest(url, headers, None, 'delete', 'wiping kvstore splunkversioncontrol_rest_restore_status after completed run', sslVerify=False)
258258

259259
#Run a Splunk query via the search/jobs endpoint
260-
def runSearchJob(self, url, appname, headers, auth, username, earliest_time, *, sslVerify=False):
260+
def runSearchJob(self, url, appname, headers, auth, username, earliest_time, sslVerify=False):
261261
url = url + "/servicesNS/-/%s/search/jobs" % (appname)
262262
query = "savedsearch \"Splunk Version Control Audit Query POST\" username=\"%s\" | stats count | where count>0" % (username)
263263
logger.debug("Running requests.post() on url=%s query=\"%s\"" % (url, query))
@@ -279,7 +279,7 @@ def runSearchJob(self, url, appname, headers, auth, username, earliest_time, *,
279279
logger.warn("messages from query=\"%s\" were messages=\"%s\"" % (query, res["messages"]))
280280
return res
281281

282-
def runHttpRequest(self, url, headers, data, type, text, *, sslVerify=False):
282+
def runHttpRequest(self, url, headers, data, type, text, sslVerify=False):
283283
if type == "delete":
284284
res = requests.delete(url, headers=headers, verify=sslVerify)
285285
elif type == "post":

bin/splunkversioncontrol_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def runOSProcess(command, logger, timeout=60, shell=False):
3636
return str(stdout), str(stderr), res
3737

3838
# use the password endpoint to obtain the clear_password passed in, start with the context of this app and then try all contexts
39-
def get_password(password, session_key, logger, *, sslVerify=False):
39+
def get_password(password, session_key, logger, sslVerify=False):
4040
#TODO move this into shared function to obtain passwords:
4141
context = os.path.dirname(os.path.dirname(__file__))
4242

0 commit comments

Comments
 (0)