From 57fe851bcb531abefbe77ab00035e17ae2dc1b33 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 (cherry picked from commit c138daa79425f10fda1a33469ef934accfac4d7f) --- 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 eb7557cb3156..acedbff906ab 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -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): -- 2.47.3