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

Method new_function

tools/marvin/marvin/deployAndRun.py:41–53  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

39
40 def __call__(self, original_func):
41 def new_function(*args, **kwargs):
42 exit_check = False
43 try:
44 if original_func(*args, **kwargs) == FAILED:
45 exit_check = True
46 except Exception as e:
47 print("===Exception.Please Check:===", e)
48 exit_check = True
49 finally:
50 if exit_check:
51 print("==== %s ====" % self.msg)
52 MarvinCliHelp.print_cmds_help()
53 sys.exit(1)
54 return new_function
55
56

Callers

nothing calls this directly

Calls 1

print_cmds_helpMethod · 0.80

Tested by

no test coverage detected