From af80dbbeaae546b5acb91edc1d4ba9fe2b4c1f83 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Thu, 29 Nov 2018 10:49:11 -0500 Subject: [PATCH] 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 --- src/pybind/mgr/orchestrator_cli/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index 0e2dace1c892..59934bec931c 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 "" -- 2.47.3