Commit 836dc719 authored by Marco Mariani's avatar Marco Mariani

changed argument name: --configuration => --parameters

parent 46c0a986
...@@ -44,8 +44,7 @@ class RequestCommand(ClientConfigCommand): ...@@ -44,8 +44,7 @@ class RequestCommand(ClientConfigCommand):
action='store_true', action='store_true',
help='Ask for a slave instance') help='Ask for a slave instance')
# XXX maybe find a better name? we already have a global --cfg option ap.add_argument('--parameters',
ap.add_argument('--configuration',
nargs='+', nargs='+',
help="Give your configuration 'option1=value1 option2=value2'") help="Give your configuration 'option1=value1 option2=value2'")
...@@ -53,7 +52,7 @@ class RequestCommand(ClientConfigCommand): ...@@ -53,7 +52,7 @@ class RequestCommand(ClientConfigCommand):
def take_action(self, args): def take_action(self, args):
args.node = parse_option_dict(args.node) args.node = parse_option_dict(args.node)
args.configuration = parse_option_dict(args.configuration) args.parameters = parse_option_dict(args.parameters)
configp = self.fetch_config(args) configp = self.fetch_config(args)
conf = ClientConfig(args, configp) conf = ClientConfig(args, configp)
......
...@@ -45,7 +45,7 @@ def request(): ...@@ -45,7 +45,7 @@ def request():
args = ap.parse_args() args = ap.parse_args()
if args.configuration: if args.configuration:
args.configuration = argToDict(args.configuration) args.parameters = argToDict(args.configuration)
if args.node: if args.node:
args.node = argToDict(args.node) args.node = argToDict(args.node)
......
...@@ -123,7 +123,7 @@ def do_request(conf, local): ...@@ -123,7 +123,7 @@ def do_request(conf, local):
partition = local['slap'].registerOpenOrder().request( partition = local['slap'].registerOpenOrder().request(
software_release = conf.software_url, software_release = conf.software_url,
partition_reference = conf.reference, partition_reference = conf.reference,
partition_parameter_kw = conf.configuration, partition_parameter_kw = conf.parameters,
software_type = conf.type, software_type = conf.type,
filter_kw = conf.node, filter_kw = conf.node,
shared = conf.slave shared = conf.slave
......
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