Correct an IndentationError

modified:   interface/ri_inst_cli.py
This commit is contained in:
Peng Zhihui
2014-02-25 09:12:05 +08:00
parent 1b3752a356
commit b0f6069fc0

View File

@@ -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():