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

Method parse_input_deploy

tools/marvin/marvin/deployAndRun.py:189–204  ·  view source on GitHub ↗

Parses,reads the options and verifies for the config file

(self, inputs=None)

Source from the content-addressed store, hash-verified

187 @VerifyAndExit(
188 "cmd failed, may be invalid input options, please check help")
189 def parse_input_deploy(self, inputs=None):
190 '''
191 Parses,reads the options and verifies for the config file
192 '''
193 if inputs:
194 out_dict = {}
195 args = inputs.strip().split(' ')
196 for item in args:
197 (key, value) = item.split('=')
198 out_dict[key] = value
199 self.__configFile = out_dict.get('config-file', '')
200 if not self.__configFile:
201 return FAILED
202 print("\n==== Parsing Input Options Successful ====")
203 return SUCCESS
204 return FAILED
205
206 @VerifyAndExit(
207 "cmd failed, may be invalid input options, please check help")

Callers 1

do_deploydcMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected