]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
commitda6ae669df890bdbed6bfcf3b66ea8b42ae29b86
tree14e8d2787e1320b2f3c963eb5cd66e81d2a5465b
parent403622be721a460f3dff2d84f6bfc628f5026704
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 <jlayton@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py