Skip to content

Commit 8778bf7

Browse files
author
Sam Stelle
committed
Nit fixes in client.py
1 parent db6e490 commit 8778bf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

splunklib/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def restart(self, timeout=None):
493493
:param timeout: A timeout period, in seconds.
494494
:type timeout: ``integer``
495495
"""
496-
msg = {"value":"Restart requested by " + self.username + "via the Splunk SDK for Python"}
496+
msg = { "value": "Restart requested by " + self.username + "via the Splunk SDK for Python"}
497497
# This message will be deleted once the server actually restarts.
498498
self.messages.create(name="restart_required", **msg)
499499
result = self.post("server/control/restart")
@@ -1962,12 +1962,12 @@ def __getitem__(self, key):
19621962
if len(entries) > 1:
19631963
raise AmbiguousReferenceException("Found multiple inputs of kind %s named %s." % (kind, key))
19641964
elif len(entries) == 0:
1965-
raise KeyError((key,kind))
1965+
raise KeyError((key, kind))
19661966
else:
19671967
return entries[0]
19681968
except HTTPError as he:
19691969
if he.status == 404: # No entity matching kind and key
1970-
raise KeyError((key,kind))
1970+
raise KeyError((key, kind))
19711971
else:
19721972
raise
19731973
else:

0 commit comments

Comments
 (0)