]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: Cancel output color control 31697/head
authorzhengyin <zhengyin@cmss.chinamobile.com>
Wed, 6 Nov 2019 03:57:40 +0000 (11:57 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 18 Nov 2019 03:26:54 +0000 (10:26 +0700)
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 <zhengyin@cmss.chinamobile.com>
(cherry picked from commit ca2675e215acc8fbfb2d730b9c1f9f3aafc3e67d)

src/pybind/mgr/mgr_util.py

index 42e00da2aa08a20997e13e2dcbdb87b22fb28e8c..ff2b086c15e554f8d77c375a2eac881b59ef140b 100644 (file)
@@ -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)