From: Yanhu Cao Date: Wed, 6 Mar 2019 06:49:04 +0000 (+0800) Subject: mgr/status: fix 'ceph fs status' AttributeError X-Git-Tag: v14.1.1~13^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f5350443dc2661838be68cffc4ca2f750e691671;p=ceph-ci.git mgr/status: fix 'ceph fs status' AttributeError Fixes: http://tracker.ceph.com/issues/38122 Signed-off-by: Yanhu Cao --- 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)