From c138daa79425f10fda1a33469ef934accfac4d7f Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Fri, 7 Dec 2018 16:14:20 +0100 Subject: [PATCH] pybind/mgr/status: fix ceph fs status in py3 environments. Fixes: http://tracker.ceph.com/issues/37573 Signed-off-by: Jan Fajerski --- src/pybind/mgr/status/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 99d3c7103d5..bb985bb2754 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -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):