From ca2675e215acc8fbfb2d730b9c1f9f3aafc3e67d Mon Sep 17 00:00:00 2001 From: zhengyin Date: Wed, 6 Nov 2019 11:57:40 +0800 Subject: [PATCH] pybind/mgr: Cancel output color control When I do "ceph osd status" command, the units are not visible when using a black background, So cancel outpul color control Fixes: https://tracker.ceph.com/issues/42517 Signed-off-by: Zheng Yin --- src/pybind/mgr/mgr_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/mgr_util.py b/src/pybind/mgr/mgr_util.py index 42e00da2aa0..ff2b086c15e 100644 --- a/src/pybind/mgr/mgr_util.py +++ b/src/pybind/mgr/mgr_util.py @@ -71,11 +71,11 @@ def format_units(n, width, colored, decimal): return formatted -def format_dimless(n, width, colored=True): +def format_dimless(n, width, colored=False): return format_units(n, width, colored, decimal=True) -def format_bytes(n, width, colored=True): +def format_bytes(n, width, colored=False): return format_units(n, width, colored, decimal=False) -- 2.47.3