File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments