1
0
mirror of https://github.com/ceph/ceph synced 2025-03-05 07:48:55 +00:00

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 <jlayton@redhat.com>
This commit is contained in:
Jeff Layton 2018-11-29 10:49:11 -05:00
parent 9c515d85db
commit af80dbbeaa

View 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 ""