]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
restful: send_command changed type
authorBoris Ranto <branto@redhat.com>
Wed, 10 May 2017 06:22:05 +0000 (08:22 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 22 May 2017 17:20:41 +0000 (19:20 +0200)
The send_command function now requires 6 arguments, switching back to
mon commands as that is what we used before.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/restful/module.py

index 96c53e4809ce54fd3e246c003fd815f3e0abd139..229f99b8e07c4b8579141c58dd490c2b71e9846b 100644 (file)
@@ -82,7 +82,7 @@ class CommandsRequest(object):
             results.append(result)
 
             # Run the command
-            instance.send_command(result, json.dumps(commands[index]), tag)
+            instance.send_command(result, 'mon', '', json.dumps(commands[index]), tag)
 
         return results
 
@@ -497,5 +497,5 @@ class Module(MgrModule):
         # tag with 'seq' so that we can ingore these in notify function
         result = CommandResult('seq')
 
-        self.send_command(result, json.dumps(command), 'seq')
+        self.send_command(result, 'mon', '', json.dumps(command), 'seq')
         return result.wait()