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

Method __parseConfig

tools/marvin/marvin/marvinInit.py:61–78  ·  view source on GitHub ↗

@Name: __parseConfig @Desc : Parses the configuration file passed and assigns the parsed configuration @Output : SUCCESS or FAILED

(self)

Source from the content-addressed store, hash-verified

59 self.__userLogFolderPath = user_logfolder_path
60
61 def __parseConfig(self):
62 '''
63 @Name: __parseConfig
64 @Desc : Parses the configuration file passed and assigns
65 the parsed configuration
66 @Output : SUCCESS or FAILED
67 '''
68 try:
69 if not os.path.isfile(self.__configFile):
70 print("\n=== Marvin Parse Config Init Failed ===")
71 return FAILED
72 self.__parsedConfig = getSetupConfig(self.__configFile)
73 print("\n=== Marvin Parse Config Successful ===")
74 return SUCCESS
75 except Exception as e:
76 print("\nException Occurred Under __parseConfig : " \
77 "%s" % GetDetailExceptionInfo(e))
78 return FAILED
79
80 def getParsedConfig(self):
81 return self.__parsedConfig

Callers 1

initMethod · 0.95

Calls 2

getSetupConfigFunction · 0.90
GetDetailExceptionInfoFunction · 0.90

Tested by

no test coverage detected