modified: ri_inst_cli.py
format-string
This commit is contained in:
@@ -24,10 +24,10 @@ def set_sub_task(sub_task):
|
||||
print sub_task
|
||||
|
||||
def set_task_scale():
|
||||
print '%', Rate.value
|
||||
print "%.2f" %float(Rate.value)
|
||||
|
||||
def set_task_over():
|
||||
string = raw_input("Rocky system install success,plase reboot now![Y?]")
|
||||
string = raw_input("Rocky system installation successfully, are your restart?[Y]")
|
||||
if string.lower() == "y":
|
||||
return True
|
||||
return False
|
||||
@@ -36,9 +36,6 @@ def root_destroy():
|
||||
pass
|
||||
|
||||
def error(oper, ret):
|
||||
if language == 'chinese':
|
||||
print "%s:\n Error number: %d\n %s"%(oper.chinese_name, ret, oper.return_value[ret][1])
|
||||
else:
|
||||
print "%s:\n Error number: %d\n %s"%(oper.english_name, ret, oper.return_value[ret][0])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user