]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: Cancel output color control 31427/head
authorzhengyin <zhengyin@cmss.chinamobile.com>
Wed, 6 Nov 2019 03:57:40 +0000 (11:57 +0800)
committerzhengyin <zhengyin@cmss.chinamobile.com>
Thu, 7 Nov 2019 03:10:41 +0000 (11:10 +0800)
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>
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)