diff --git a/senlinclient/v1/cluster.py b/senlinclient/v1/cluster.py index 1b424e4e..841a567b 100644 --- a/senlinclient/v1/cluster.py +++ b/senlinclient/v1/cluster.py @@ -522,7 +522,7 @@ class ClusterPolicyAttach(command.Command): parser = super(ClusterPolicyAttach, self).get_parser(prog_name) parser.add_argument( '--enabled', - metavar='', + metavar='', default=True, help=_('Whether the policy should be enabled once attached. ' 'Default to True') diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 20e89137..c4132c3c 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -1012,7 +1012,7 @@ def do_cluster_policy_show(service, args): @utils.arg('-p', '--policy', metavar='', required=True, help=_('ID or name of policy to be attached.')) -@utils.arg('-e', '--enabled', metavar='', default=True, +@utils.arg('-e', '--enabled', metavar='', default=True, help=_('Whether the policy should be enabled once attached. ' 'Default to enabled.')) @utils.arg('id', metavar='',