From b0f6069fc0f27a2c28653b8623aaabbd7765bb5d Mon Sep 17 00:00:00 2001 From: Peng Zhihui Date: Tue, 25 Feb 2014 09:12:05 +0800 Subject: [PATCH] Correct an IndentationError modified: interface/ri_inst_cli.py --- interface/ri_inst_cli.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/interface/ri_inst_cli.py b/interface/ri_inst_cli.py index 00cd1ad..3dd20aa 100644 --- a/interface/ri_inst_cli.py +++ b/interface/ri_inst_cli.py @@ -28,18 +28,18 @@ def set_task_scale(): print "%.2f" %float(Rate.value) def set_task_over(): - f = open('/proc/cmdline', 'r') - cmdline = f.readline() - f.close() - instmode = cmdline.split(' ')[0].split('=')[1] - if instmode == 'Auto' or instmode == 'StateGrid': - print 'The system will reboot in 10 seconds ......' - time.sleep(10) - return True - else: - string = raw_input("Rocky system installation successfully, do you want to reboot?[Y/n]") - if string.lower() == "y" or string == "": - return True + f = open('/proc/cmdline', 'r') + cmdline = f.readline() + f.close() + instmode = cmdline.split(' ')[0].split('=')[1] + if instmode == 'Auto' or instmode == 'StateGrid': + print 'The system will reboot in 10 seconds ......' + time.sleep(10) + return True + else: + string = raw_input("Rocky system installation successfully, do you want to reboot?[Y/n]") + if string.lower() == "y" or string == "": + return True return False def root_destroy():