MCPcopy Create free account
hub / github.com/apache/cloudstack / writeProgressBar

Function writeProgressBar

python/lib/cloudutils/utilities.py:89–98  ·  view source on GitHub ↗
(msg, result)

Source from the content-addressed store, hash-verified

87 logging.basicConfig(level=logging.DEBUG)
88
89def writeProgressBar(msg, result):
90 output = "[%-6s]\n"%"Failed"
91 if msg is not None:
92 output = "%-30s"%msg
93 elif result is True:
94 output = "[%-2s]\n"%"OK"
95 elif result is False:
96 output = "[%-6s]\n"%"Failed"
97 sys.stdout.write(output)
98 sys.stdout.flush()
99
100class UnknownSystemException(Exception):
101 "This Exception is raised if the current operating environment is unknown"

Callers 2

configurationMethod · 0.85
backupMethod · 0.85

Calls 2

writeMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected