]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: Verify non-empty list in get_active_daemon functions 36858/head
authorAdam King <adking@redhat.com>
Thu, 27 Aug 2020 16:22:49 +0000 (12:22 -0400)
committerAdam King <adking@redhat.com>
Thu, 27 Aug 2020 17:45:30 +0000 (13:45 -0400)
commit2c440edebf7cd4e535bcb680bd7131f0d22daf7a
tree269e4b974836f028e1d1fb93bb7215af97e9e8e9
parent26f231f60abd0e00063056db0457112306cd0959
mgr/cephadm: Verify non-empty list in get_active_daemon functions

The get_active_daemon functions for monitoring stack daemons
were just returning the first or last daemon in the given list
without checking the list actually contained any daemons

Fixes: https://tracker.ceph.com/issues/47171
Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/services/monitoring.py