]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/status: fix ceph fs status in py3 environments. 25695/head
authorJan Fajerski <jfajerski@suse.com>
Fri, 7 Dec 2018 15:14:20 +0000 (16:14 +0100)
committerJos Collin <jcollin@redhat.com>
Mon, 24 Dec 2018 13:52:19 +0000 (19:22 +0530)
Fixes: http://tracker.ceph.com/issues/37573
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit c138daa79425f10fda1a33469ef934accfac4d7f)

src/pybind/mgr/status/module.py

index eb7557cb315637ab3b72a6a7f516978c63aa315f..acedbff906ab7f2906e2b7b41d61cbd1779e12cb 100644 (file)
@@ -240,7 +240,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):