]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: fix _list_services display 25610/head
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Dec 2018 11:12:02 +0000 (06:12 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Dec 2018 11:17:59 +0000 (06:17 -0500)
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 <jlayton@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index 0dab0d0d5b7ccbdac68ec65e8529f7d702b52909..ad5210ba8ecf3e59e798f762bcb7d445ecd3542a 100644 (file)
@@ -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))