Correct an IndentationError
modified: interface/ri_inst_cli.py
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user