From fb94f728324643815ac8559ab342f4840045f780 Mon Sep 17 00:00:00 2001 From: Tanyy Date: Thu, 23 Mar 2017 18:57:44 +0800 Subject: [PATCH] [common.py] fix the code format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix the code format. first level should be indent 4 blank,in an effort to improve the readability of programs --- conf/common.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/conf/common.py b/conf/common.py index c1ef073..18948f1 100644 --- a/conf/common.py +++ b/conf/common.py @@ -526,21 +526,21 @@ def eval_args( obj, function_name, args ): return res def wait_ceph_to_health( user, controller ): - #wait ceph health to be OK - waitcount = 0 - try: - while not check_health( user, controller ) and waitcount < 300: - printout("WARNING","Applied tuning, waiting ceph to be healthy") - time.sleep(3) - waitcount += 3 - except: - printout("WARNING","Caught KeyboardInterrupt, exit") - sys.exit() - if waitcount < 300: - printout("LOG","Tuning has applied to ceph cluster, ceph is Healthy now") - else: - printout("ERROR","ceph is unHealthy after 300sec waiting, please fix the issue manually") - sys.exit() + #wait ceph health to be OK + waitcount = 0 + try: + while not check_health( user, controller ) and waitcount < 300: + printout("WARNING","Applied tuning, waiting ceph to be healthy") + time.sleep(3) + waitcount += 3 + except: + printout("WARNING","Caught KeyboardInterrupt, exit") + sys.exit() + if waitcount < 300: + printout("LOG","Tuning has applied to ceph cluster, ceph is Healthy now") + else: + printout("ERROR","ceph is unHealthy after 300sec waiting, please fix the issue manually") + sys.exit() def check_health( user, controller ): check_count = 0