From f5350443dc2661838be68cffc4ca2f750e691671 Mon Sep 17 00:00:00 2001 From: Yanhu Cao Date: Wed, 6 Mar 2019 14:49:04 +0800 Subject: [PATCH] mgr/status: fix 'ceph fs status' AttributeError Fixes: http://tracker.ceph.com/issues/38122 Signed-off-by: Yanhu Cao --- src/pybind/mgr/status/module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index c7b36ff26d6..bd0faa34292 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -92,9 +92,9 @@ class Module(MgrModule): if laggy: state += "(laggy)" if state == "active" and not laggy: - c_state = self.colorize(state, self.GREEN) + c_state = mgr_util.colorize(state, mgr_util.GREEN) else: - c_state = self.colorize(state, self.YELLOW) + c_state = mgr_util.colorize(state, mgr_util.YELLOW) # Populate based on context of state, e.g. client # ops for an active daemon, replay progress, reconnect @@ -110,7 +110,7 @@ class Module(MgrModule): metadata = self.get_metadata('mds', info['name']) mds_versions[metadata.get('ceph_version', "unknown")].append(info['name']) rank_table.add_row([ - self.bold(rank.__str__()), c_state, info['name'], + mgr_util.bold(rank.__str__()), c_state, info['name'], activity, mgr_util.format_dimless(dns, 5), mgr_util.format_dimless(inos, 5) -- 2.39.5