From fc4b1673013954f2d6730370ff5579cac57085ab Mon Sep 17 00:00:00 2001 From: miaohb Date: Thu, 22 Dec 2016 14:55:42 +0800 Subject: [PATCH] Trivial: Modify the description of policy validate The spec file should be of the policy to be validated, not created. Change-Id: Icd31c549a7447022405051213c13e4b9b33f8de7 --- senlinclient/v1/policy.py | 2 +- senlinclient/v1/shell.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/senlinclient/v1/policy.py b/senlinclient/v1/policy.py index efa8ce14..67f7cf1c 100644 --- a/senlinclient/v1/policy.py +++ b/senlinclient/v1/policy.py @@ -287,7 +287,7 @@ class ValidatePolicy(command.ShowOne): '--spec-file', metavar='', required=True, - help=_('The spec file used to create the policy') + help=_('The spec file of the policy to be validated') ) return parser diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 237a9070..08e4006e 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -440,9 +440,9 @@ def do_policy_delete(service, args): @utils.arg('-s', '--spec-file', metavar='', 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)