Explorar o código

Fix wrong return types in RPC method docstrings. Closes #198

Mike Naberezny %!s(int64=12) %!d(string=hai) anos
pai
achega
969ddb1222
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      supervisor/rpcinterface.py

+ 11 - 11
supervisor/rpcinterface.py

@@ -315,9 +315,9 @@ class SupervisorNamespaceRPCInterface:
     def startProcessGroup(self, name, wait=True):
     def startProcessGroup(self, name, wait=True):
         """ Start all processes in the group named 'name'
         """ Start all processes in the group named 'name'
 
 
-        @param string name        The group name
-        @param boolean wait       Wait for each process to be fully started
-        @return struct result     A structure containing start statuses
+        @param string name     The group name
+        @param boolean wait    Wait for each process to be fully started
+        @return array result   An array of process status info structs
         """
         """
         self._update('startProcessGroup')
         self._update('startProcessGroup')
 
 
@@ -340,8 +340,8 @@ class SupervisorNamespaceRPCInterface:
     def startAllProcesses(self, wait=True):
     def startAllProcesses(self, wait=True):
         """ Start all processes listed in the configuration file
         """ Start all processes listed in the configuration file
 
 
-        @param boolean wait Wait for each process to be fully started
-        @return struct result     A structure containing start statuses
+        @param boolean wait    Wait for each process to be fully started
+        @return array result   An array of process status info structs
         """
         """
         self._update('startAllProcesses')
         self._update('startAllProcesses')
 
 
@@ -402,9 +402,9 @@ class SupervisorNamespaceRPCInterface:
     def stopProcessGroup(self, name, wait=True):
     def stopProcessGroup(self, name, wait=True):
         """ Stop all processes in the process group named 'name'
         """ Stop all processes in the process group named 'name'
 
 
-        @param string name  The group name
+        @param string name     The group name
         @param boolean wait    Wait for each process to be fully stopped
         @param boolean wait    Wait for each process to be fully stopped
-        @return boolean result Always return true unless error.
+        @return array result   An array of process status info structs
         """
         """
         self._update('stopProcessGroup')
         self._update('stopProcessGroup')
 
 
@@ -427,8 +427,8 @@ class SupervisorNamespaceRPCInterface:
     def stopAllProcesses(self, wait=True):
     def stopAllProcesses(self, wait=True):
         """ Stop all processes in the process list
         """ Stop all processes in the process list
 
 
-        @param boolean wait    Wait for each process to be fully stopped
-        @return boolean result Always return true unless error.
+        @param  boolean wait   Wait for each process to be fully stopped
+        @return array result   An array of process status info structs
         """
         """
         self._update('stopAllProcesses')
         self._update('stopAllProcesses')
 
 
@@ -442,10 +442,10 @@ class SupervisorNamespaceRPCInterface:
         return killall # deferred
         return killall # deferred
 
 
     def getAllConfigInfo(self):
     def getAllConfigInfo(self):
-        """ Get info about all availible process configurations. Each record
+        """ Get info about all available process configurations. Each struct
         represents a single process (i.e. groups get flattened).
         represents a single process (i.e. groups get flattened).
 
 
-        @return array result  An array of process config info records
+        @return array result  An array of process config info structs
         """
         """
         self._update('getAllConfigInfo')
         self._update('getAllConfigInfo')