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

Function exit

python/lib/cloud_utils.py:106–109  ·  view source on GitHub ↗

Exit with an error status code, printing a message to stderr if specified

(errno=E_GENERIC,message=None,*args)

Source from the content-addressed store, hash-verified

104 else: sys.stderr.write(msgfmt)
105
106def exit(errno=E_GENERIC,message=None,*args):
107 """Exit with an error status code, printing a message to stderr if specified"""
108 if message: stderr(message,*args)
109 sys.exit(errno)
110
111def resolve(host,port):
112 return [ (x[4][0],len(x[4])+2) for x in socket.getaddrinfo(host,port,socket.AF_UNSPEC,socket.SOCK_STREAM, 0, socket.AI_PASSIVE) ]

Callers 15

mainFunction · 0.85
configureMethod · 0.85
__cleanAndExitMethod · 0.85
codegenerator.pyFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

stderrFunction · 0.85

Tested by

no test coverage detected