Correct default class version for static action call
Change-Id: I9c6e21d5229fc6a5072e14bb8d5db1d87f4b7705
This commit is contained in:
parent
aa02b816d3
commit
ae7b651593
@ -51,7 +51,7 @@ class StaticActionCall(command.ShowOne):
|
||||
parser.add_argument(
|
||||
"--class-version",
|
||||
default='',
|
||||
help='Optional version of the class, otherwise version 0.0.0 is '
|
||||
help='Optional version of the class, otherwise version =0 is '
|
||||
'used ',
|
||||
)
|
||||
|
||||
@ -80,7 +80,7 @@ class StaticActionCall(command.ShowOne):
|
||||
"className": parsed_args.class_name,
|
||||
"methodName": parsed_args.method_name,
|
||||
"packageName": parsed_args.package_name or None,
|
||||
"classVersion": parsed_args.class_version or '0.0.0',
|
||||
"classVersion": parsed_args.class_version or '=0',
|
||||
"parameters": arguments
|
||||
}
|
||||
|
||||
|
@ -543,7 +543,7 @@ class ShellCommandTest(ShellTest):
|
||||
"className": 'class.name',
|
||||
"methodName": 'method.name',
|
||||
"packageName": None,
|
||||
"classVersion": '0.0.0',
|
||||
"classVersion": '=0',
|
||||
"parameters": {}
|
||||
})
|
||||
|
||||
@ -577,7 +577,7 @@ class ShellCommandTest(ShellTest):
|
||||
"className": 'class.name',
|
||||
"methodName": 'method.name',
|
||||
"packageName": None,
|
||||
"classVersion": '0.0.0',
|
||||
"classVersion": '=0',
|
||||
"parameters": {'food': 'spam', 'parrot': 'dead'}
|
||||
})
|
||||
|
||||
@ -600,7 +600,7 @@ class ShellCommandTest(ShellTest):
|
||||
"className": 'class.name',
|
||||
"methodName": 'method.name',
|
||||
"packageName": None,
|
||||
"classVersion": '0.0.0',
|
||||
"classVersion": '=0',
|
||||
"parameters": {
|
||||
'dictArg': {u'key1': u'value1', u'key2': u'value2'},
|
||||
'listArg': [u'item1', u'item2', u'item3'],
|
||||
|
@ -223,7 +223,7 @@ def do_environment_action_get_result(mc, args):
|
||||
@utils.arg("--package-name", metavar='<PACKAGE>', default='',
|
||||
help='Optional FQN of the package to look for the class in')
|
||||
@utils.arg("--class-version", default='',
|
||||
help='Optional version of the class, otherwise version 0.0.0 is '
|
||||
help='Optional version of the class, otherwise version =0 is '
|
||||
'used ')
|
||||
def do_static_action_call(mc, args):
|
||||
"""Call static method `METHOD` of the class `CLASS` with `ARGUMENTS`.
|
||||
@ -251,7 +251,7 @@ def do_static_action_call(mc, args):
|
||||
"className": args.class_name,
|
||||
"methodName": args.method_name,
|
||||
"packageName": args.package_name or None,
|
||||
"classVersion": args.class_version or '0.0.0',
|
||||
"classVersion": args.class_version or '=0',
|
||||
"parameters": arguments
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user