From da6ae669df890bdbed6bfcf3b66ea8b42ae29b86 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 19 Dec 2018 06:12:02 -0500 Subject: [PATCH] mgr/orchestrator: fix _list_services display I see this error when using "ceph orchestrator service ls": Error EINVAL: Traceback (most recent call last): File "/usr/lib64/ceph/mgr/orchestrator_cli/module.py", line 318, in handle_command return self._handle_command(inbuf, cmd) File "/usr/lib64/ceph/mgr/orchestrator_cli/module.py", line 330, in _handle_command return self._list_services(cmd) File "/usr/lib64/ceph/mgr/orchestrator_cli/module.py", line 165, in _list_services s.config_location)) AttributeError: 'ServiceDescription' object has no attribute 'config_location' The config_locations field should be rados_config_location. Signed-off-by: Jeff Layton --- src/pybind/mgr/orchestrator_cli/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index 0dab0d0d5b7cc..ad5210ba8ecf3 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -162,7 +162,7 @@ class OrchestratorCli(MgrModule): s.nodename, s.container_id, s.version, - s.config_location)) + s.rados_config_location)) return HandleCommandResult(odata="\n".join(lines)) -- 2.47.3