Commit 700051f5 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Do not parse arguments twice for slapos-request.

This commit also  fixes other arguments which were read  and parsed as regular
configuration files.
parent 2e6ad002
......@@ -129,8 +129,8 @@ def request():
usage = """usage: %s [options] CONFIGURATION_FILE SOFTWARE_INSTANCE INSTANCE_REFERENCE
slapos-request allows you to request slapos instances.""" % sys.argv[0]
config = Config()
arguments = Parser(usage=usage).check_args()[1]
config.setConfig(*Parser(usage=usage).check_args())
options, arguments = Parser(usage=usage).check_args()
config.setConfig(options, arguments[0])
local = init(config)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment