]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
orchestrator_cli: fix HandleCommandResult invocations in _status() 25329/head
authorJeff Layton <jlayton@redhat.com>
Thu, 29 Nov 2018 15:49:11 +0000 (10:49 -0500)
committerJeff Layton <jlayton@redhat.com>
Thu, 29 Nov 2018 15:52:08 +0000 (10:52 -0500)
These strings were being passed in as positional parameters, but we
need to pass them in as odata=.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index 0e2dace1c89204486e1b6980049b13d919fd8937..59934bec931cec1b0ef6b642e6320eee0a7cadba 100644 (file)
@@ -303,9 +303,9 @@ class OrchestratorCli(MgrModule):
 
         if avail is None:
             # The module does not report its availability
-            return HandleCommandResult("Backend: {0}".format(self._select_orchestrator()))
+            return HandleCommandResult(odata="Backend: {0}".format(self._select_orchestrator()))
         else:
-            return HandleCommandResult("Backend: {0}\nAvailable: {1}{2}".format(
+            return HandleCommandResult(odata="Backend: {0}\nAvailable: {1}{2}".format(
                                            self._select_orchestrator(),
                                            avail,
                                            " ({0})".format(why) if not avail else ""