pybind/mgr/status: fix ceph fs status in py3 environments.

Fixes: http://tracker.ceph.com/issues/37573

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
This commit is contained in:
Jan Fajerski 2018-12-07 16:14:20 +01:00
parent af96e16271
commit c138daa794

View File

@ -246,7 +246,7 @@ class Module(MgrModule):
output += "\n" + standby_table.get_string() + "\n"
if len(mds_versions) == 1:
output += "MDS version: {0}".format(mds_versions.keys()[0])
output += "MDS version: {0}".format(list(mds_versions)[0])
else:
version_table = PrettyTable(["version", "daemons"])
for version, daemons in six.iteritems(mds_versions):