From: Jeff Layton Date: Thu, 29 Nov 2018 15:49:11 +0000 (-0500) Subject: orchestrator_cli: fix HandleCommandResult invocations in _status() X-Git-Tag: v14.1.0~762^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=af80dbbeaae546b5acb91edc1d4ba9fe2b4c1f83;p=ceph-ci.git orchestrator_cli: fix HandleCommandResult invocations in _status() These strings were being passed in as positional parameters, but we need to pass them in as odata=. Signed-off-by: Jeff Layton --- diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index 0e2dace1c89..59934bec931 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -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 ""