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

Method getErrMsg

python/lib/cloudutils/utilities.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 return self.stderr.decode('utf-8').strip('\n')
70
71 def getErrMsg(self):
72 if self.isSuccess():
73 return ""
74
75 if self.getStderr() is None or self.getStderr() == "":
76 return self.getStdout()
77 else:
78 return self.getStderr()
79
80def initLoging(logFile=None):
81 try:

Callers 2

runMethod · 0.95
configMethod · 0.80

Calls 3

isSuccessMethod · 0.95
getStderrMethod · 0.95
getStdoutMethod · 0.95

Tested by

no test coverage detected