mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 8208 - bare metal provisioning
Add color to print text of python script
This commit is contained in:
parent
916117a319
commit
50b6aca738
@ -99,9 +99,9 @@ def writeProgressBar(msg, result=None):
|
||||
if msg is not None:
|
||||
output = "%-80s"%msg
|
||||
elif result is True:
|
||||
output = "[%-2s]\n"%"OK"
|
||||
output = "[ \033[92m%-2s\033[0m ]\n"%"OK"
|
||||
elif result is False:
|
||||
output = "[%-6s]\n"%"Failed"
|
||||
output = "[ \033[91m%-6s\033[0m ]\n"%"FAILED"
|
||||
sys.stdout.write(output)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user