From: zhengyin Date: Wed, 6 Nov 2019 03:57:40 +0000 (+0800) Subject: pybind/mgr: Cancel output color control X-Git-Tag: v15.1.0~877^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ca2675e215acc8fbfb2d730b9c1f9f3aafc3e67d;p=ceph.git 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 --- 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)