File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -493,12 +493,12 @@ def restart(self, timeout=None):
493493 :param timeout: A timeout period, in seconds.
494494 :type timeout: ``integer``
495495 """
496+
497+ # This message will be deleted once the server actually restarts.
498+ self .messages .create (name = "restart_required" , ** {"value" :self .username })
496499 result = self .post ("server/control/restart" )
497500 if timeout is None :
498501 return result
499-
500- # This message will be deleted once the server actually restarts.
501- self .messages .create (name = "restart_required" , ** {"value" :"Python SDK" })
502502 start = datetime .now ()
503503 diff = timedelta (seconds = timeout )
504504 while datetime .now () - start < diff :
@@ -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 ((kind , key ))
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 ((kind , key ))
1970+ raise KeyError ((key , kind ))
19711971 else :
19721972 raise
19731973 else :
You can’t perform that action at this time.
0 commit comments