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

Function getSetupConfig

tools/marvin/marvin/configGenerator.py:891–904  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

889
890
891def getSetupConfig(file):
892 try:
893 config = cloudstackConfiguration()
894 configLines = []
895 with open(file, 'r') as fp:
896 for line in fp:
897 ws = line.strip()
898 if not ws.startswith("#"):
899 configLines.append(ws)
900 config = json.loads("\n".join(configLines))
901 return jsonHelper.jsonLoader(config)
902 except Exception as e:
903 print("\nException Occurred under getSetupConfig %s" % \
904 GetDetailExceptionInfo(e))
905
906if __name__ == "__main__":
907 parser = OptionParser()

Callers 2

__parseConfigMethod · 0.90
configGenerator.pyFile · 0.85

Calls 4

GetDetailExceptionInfoFunction · 0.90
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected