Trivial: Modify the description of policy validate
The spec file should be of the policy to be validated, not created. Change-Id: Icd31c549a7447022405051213c13e4b9b33f8de7
This commit is contained in:
@@ -287,7 +287,7 @@ class ValidatePolicy(command.ShowOne):
|
||||
'--spec-file',
|
||||
metavar='<spec-file>',
|
||||
required=True,
|
||||
help=_('The spec file used to create the policy')
|
||||
help=_('The spec file of the policy to be validated')
|
||||
)
|
||||
return parser
|
||||
|
||||
|
||||
@@ -440,9 +440,9 @@ def do_policy_delete(service, args):
|
||||
|
||||
|
||||
@utils.arg('-s', '--spec-file', metavar='<SPEC_FILE>', required=True,
|
||||
help=_('The spec file used to create the policy.'))
|
||||
help=_('The spec file of the policy to be validated.'))
|
||||
def do_policy_validate(service, args):
|
||||
"""VAlidate a policy spec."""
|
||||
"""Validate a policy spec."""
|
||||
show_deprecated('senlin policy-validate',
|
||||
'openstack cluster policy validate')
|
||||
spec = utils.get_spec_content(args.spec_file)
|
||||
|
||||
Reference in New Issue
Block a user