From aeed9a12f571fa86d5f34f3e976d9d05f03e262c Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Wed, 10 May 2017 08:22:05 +0200 Subject: [PATCH] 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 --- src/pybind/mgr/restful/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/restful/module.py b/src/pybind/mgr/restful/module.py index 96c53e4809c..229f99b8e07 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() -- 2.47.3