Skip to content

Commit 6fa005c

Browse files
committed
Correct typo. And log at warning level with the right URL
1 parent 5a926e8 commit 6fa005c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/splunkversioncontrol_backup_class.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ def runQueries(self, app, endpoint, obj_type, fieldIgnoreList, aliasAttributes={
391391
# This endpoint exists for savedsearches but not other object types
392392
if obj_type == "savedsearches":
393393
# Determine the default attributes and do no backup them up
394-
defaults_url = f"{self.splunk_rest}/services/properites/{obj_type}/default?output_mode=json"
394+
defaults_url = f"{self.splunk_rest}/services/properties/{obj_type}/default?output_mode=json"
395395
res = requests.get(defaults_url, auth=auth, headers=headers, verify=self.sslVerify, proxies=self.proxies)
396396
if (res.status_code != requests.codes.ok):
397-
logger.debug("i=\"%s\" URL=%s in app=%s statuscode=%s reason=%s response=\"%s\"" % (self.stanzaName, url, app, res.status_code, res.reason, res.text))
397+
logger.warn("i=\"%s\" URL=%s in app=%s statuscode=%s reason=%s response=\"%s\"" % (self.stanzaName, defaults_url, app, res.status_code, res.reason, res.text))
398398

399399
res = res.json()
400400
default_values = {}

0 commit comments

Comments
 (0)