Change the type of the parameter "enabled" to boolean
According to the original design, change the type of the parameter "enabled" in cluster-policy-attach to boolean. Change-Id: Ie8a7c021850f0d14e2bd8d9cfd74a8b844654efc
This commit is contained in:
parent
178232d38b
commit
b7cd21047c
senlinclient/v1
@ -522,7 +522,7 @@ class ClusterPolicyAttach(command.Command):
|
||||
parser = super(ClusterPolicyAttach, self).get_parser(prog_name)
|
||||
parser.add_argument(
|
||||
'--enabled',
|
||||
metavar='<enabled>',
|
||||
metavar='<boolean>',
|
||||
default=True,
|
||||
help=_('Whether the policy should be enabled once attached. '
|
||||
'Default to True')
|
||||
|
@ -1012,7 +1012,7 @@ def do_cluster_policy_show(service, args):
|
||||
|
||||
@utils.arg('-p', '--policy', metavar='<POLICY>', required=True,
|
||||
help=_('ID or name of policy to be attached.'))
|
||||
@utils.arg('-e', '--enabled', metavar='<enabled>', default=True,
|
||||
@utils.arg('-e', '--enabled', metavar='<BOOLEAN>', default=True,
|
||||
help=_('Whether the policy should be enabled once attached. '
|
||||
'Default to enabled.'))
|
||||
@utils.arg('id', metavar='<NAME or ID>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user