Show More
@@ -223,7 +223,12 b' def main(argv=None):' | |||||
223 | method = args.method |
|
223 | method = args.method | |
224 | if method == '_create_config': |
|
224 | if method == '_create_config': | |
225 | sys.exit() |
|
225 | sys.exit() | |
|
226 | ||||
|
227 | try: | |||
226 | margs = dict(map(lambda s: s.split(':', 1), other)) |
|
228 | margs = dict(map(lambda s: s.split(':', 1), other)) | |
|
229 | except: | |||
|
230 | sys.stderr.write('Error parsing arguments \n') | |||
|
231 | sys.exit() | |||
227 |
|
232 | |||
228 | api_call(apikey, host, args.format, method, **margs) |
|
233 | api_call(apikey, host, args.format, method, **margs) | |
229 | return 0 |
|
234 | return 0 |
General Comments 0
You need to be logged in to leave comments.
Login now