Merge "Remove no use option parameters for template-validate"

This commit is contained in:
Jenkins 2014-06-13 14:48:22 +00:00 committed by Gerrit Code Review
commit 1efc5199a4
2 changed files with 0 additions and 17 deletions

View File

@ -143,12 +143,6 @@ class ShellParamValidationTest(TestCase):
('stack-update', dict(
command='stack-update ts -P "a-b"',
err='Malformed parameter')),
('validate', dict(
command='validate -P "a=b;c"',
err='Malformed parameter')),
('template-validate', dict(
command='template-validate -P "a$b"',
err='Malformed parameter')),
]
def setUp(self):

View File

@ -524,11 +524,6 @@ def do_template_show(hc, args):
help='Path to the environment.')
@utils.arg('-o', '--template-object', metavar='<URL>',
help='URL to retrieve template object (e.g. from swift).')
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
help='Parameter values to validate. '
'This can be specified multiple times, or once with parameters '
'separated by a semicolon.',
action='append')
def do_validate(hc, args):
'''DEPRECATED! Use template-validate instead.'''
logger.warning('DEPRECATED! Use template-validate instead.')
@ -543,11 +538,6 @@ def do_validate(hc, args):
help='Path to the environment.')
@utils.arg('-o', '--template-object', metavar='<URL>',
help='URL to retrieve template object (e.g. from swift).')
@utils.arg('-P', '--parameters', metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
help='Parameter values to validate. '
'This can be specified multiple times, or once with parameters '
'separated by a semicolon.',
action='append')
def do_template_validate(hc, args):
'''Validate a template with parameters.'''
@ -560,7 +550,6 @@ def do_template_validate(hc, args):
env_files, env = template_utils.process_environment_and_files(
env_path=args.environment_file)
fields = {
'parameters': utils.format_parameters(args.parameters),
'template': template,
'files': dict(list(tpl_files.items()) + list(env_files.items())),
'environment': env