Browse Source

79 cols

Conflicts:
	supervisor/rpcinterface.py
Chris McDonough 10 years ago
parent
commit
630af75148
1 changed files with 2 additions and 1 deletions
  1. 2 1
      supervisor/rpcinterface.py

+ 2 - 1
supervisor/rpcinterface.py

@@ -33,7 +33,8 @@ class SupervisorNamespaceRPCInterface:
 
     def _update(self, text):
         self.update_text = text # for unit tests, mainly
-        if self.supervisord.options.mood < SupervisorStates.RUNNING:
+        if ( isinstance(self.supervisord.options.mood, int) and
+             self.supervisord.options.mood < SupervisorStates.RUNNING ):
             raise RPCError(Faults.SHUTDOWN_STATE)
 
     # RPC API methods