From 48cc6337c311ec9c3cabf89ffbf6c70bb6d7bdfb Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Wed, 9 Dec 2015 19:00:48 +0900 Subject: [PATCH] Make cluster-policy-update help message clear Current help message of cluster-policy-update may make user feel updating a policy attached to a cluster. In fact, only policy's properties are about to be updated. Change-Id: Id0560d146539f2807dbab8cc4cb9abb62dcbfe56 Closes-bug: #1524261 --- senlinclient/v1/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 30ce2ee9..e2014236 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -948,7 +948,7 @@ def do_cluster_policy_detach(sc, args): @utils.arg('id', metavar='', help=_('Name or ID of cluster to operate on.')) def do_cluster_policy_update(sc, args): - """Update a policy on cluster.""" + """Update a policy's properties on a cluster.""" kwargs = { 'policy_id': args.policy, 'priority': args.priority, @@ -966,7 +966,7 @@ def do_cluster_policy_update(sc, args): @utils.arg('id', metavar='', help=_('Name or ID of cluster to operate on.')) def do_cluster_policy_enable(sc, args): - """Enable a policy on cluster.""" + """Enable a policy on a cluster.""" resp = sc.cluster_enable_policy(args.id, args.policy) print('Request accepted by action: %s' % resp['action'])