]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/fsstatus: cope with missing 'ceph_version' 14129/head
authorTim Serong <tserong@suse.com>
Fri, 24 Mar 2017 15:50:05 +0000 (16:50 +0100)
committerTim Serong <tserong@suse.com>
Fri, 24 Mar 2017 15:52:36 +0000 (16:52 +0100)
commit7882b86a98db56c21059e3b990972a6c95d70497
treed03f8f293ea6f1a55ed74bd9779a0477c0fbeeda
parent37e7029ac4282502e06069fff660d15492a9bf2e
pybind/mgr/fsstatus: cope with missing 'ceph_version'

The fsstats module assumes ceph_version always exists in daemon
metadata, but it actually might not if run against older daemons
(see previous commit).  As the version here is actually being
presented to the user, I've set it to "unknown" in the missing
case, rather than an empty string.

Signed-off-by: Tim Serong <tserong@suse.com>
src/pybind/mgr/fsstatus/module.py