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

Function check_call

python/lib/cloud_utils.py:127–132  ·  view source on GitHub ↗
(*popenargs, **kwargs)

Source from the content-addressed store, hash-verified

125 subprocess.CalledProcessError = CalledProcessError
126
127 def check_call(*popenargs, **kwargs):
128 retcode = subprocess.call(*popenargs, **kwargs)
129 cmd = kwargs.get("args")
130 if cmd is None: cmd = popenargs[0]
131 if retcode: raise subprocess.CalledProcessError(retcode, cmd)
132 return retcode
133 subprocess.check_call = check_call
134
135# python 2.4 does not have this

Callers 4

check_hostnameFunction · 0.70
backup_etcFunction · 0.70
restore_etcFunction · 0.70
remove_backupFunction · 0.70

Calls 2

getMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected