Parses,reads the options and verifies for the config file
(self, inputs=None)
| 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") |