]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix crash on missing 'ceph_version' in daemon metadata
authorTim Serong <tserong@suse.com>
Fri, 24 Mar 2017 15:38:19 +0000 (16:38 +0100)
committerTim Serong <tserong@suse.com>
Fri, 24 Mar 2017 15:40:26 +0000 (16:40 +0100)
commit37e7029ac4282502e06069fff660d15492a9bf2e
tree880b38a0f0c298d73a84df3535e009312b9ae230
parentc52431b390aad7c5e9e2df505195ac47acd5e030
mgr: fix crash on missing 'ceph_version' in daemon metadata

Prior to 1a331234e8, only OSDs had the Ceph version in their
metadata (MONs and MDSes didn't).  This commit searches for
ceph_version, and if not present just returns an empty string.

Fixes: http://tracker.ceph.com/issues/18764
Signed-off-by: Tim Serong <tserong@suse.com>
src/mgr/PyModules.cc