From: Boris Ranto Date: Wed, 10 May 2017 06:22:05 +0000 (+0200) Subject: restful: send_command changed type X-Git-Tag: ses5-milestone6~9^2~47^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aeed9a12f571fa86d5f34f3e976d9d05f03e262c;p=ceph.git restful: send_command changed type 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 --- diff --git a/src/pybind/mgr/restful/module.py b/src/pybind/mgr/restful/module.py index 96c53e4809ce..229f99b8e07c 100644 --- a/src/pybind/mgr/restful/module.py +++ b/src/pybind/mgr/restful/module.py @@ -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()