diff --git a/muranoclient/osc/v1/action.py b/muranoclient/osc/v1/action.py index 0993bf6e..8d5dee08 100644 --- a/muranoclient/osc/v1/action.py +++ b/muranoclient/osc/v1/action.py @@ -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 } diff --git a/muranoclient/tests/unit/test_shell.py b/muranoclient/tests/unit/test_shell.py index 6d4d5e2c..4d394b34 100644 --- a/muranoclient/tests/unit/test_shell.py +++ b/muranoclient/tests/unit/test_shell.py @@ -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'], diff --git a/muranoclient/v1/shell.py b/muranoclient/v1/shell.py index c8edc4a2..ff83152d 100644 --- a/muranoclient/v1/shell.py +++ b/muranoclient/v1/shell.py @@ -223,7 +223,7 @@ def do_environment_action_get_result(mc, args): @utils.arg("--package-name", metavar='', 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 }