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:
miaohb
2016-12-22 14:55:42 +08:00
committed by XueFeng Liu
parent 3202825226
commit fc4b167301
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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)