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
This commit is contained in:
parent
55a2b3d722
commit
48cc6337c3
@ -948,7 +948,7 @@ def do_cluster_policy_detach(sc, args):
|
||||
@utils.arg('id', metavar='<NAME or ID>',
|
||||
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='<NAME or ID>',
|
||||
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'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user