Fix senlin cluster-policy-detach cannot disable
This patch fixes enabled option parameter of senlin cluster-policy-detach command. Change-Id: I55484e0738a282eab459084c6ac032c1a8956d27 Closes-Bug: #1659188
This commit is contained in:
parent
e26002b827
commit
809a90ec6c
@ -1063,7 +1063,7 @@ def do_cluster_policy_attach(service, args):
|
||||
show_deprecated('senlin cluster-policy-attach',
|
||||
'openstack cluster policy attach')
|
||||
kwargs = {
|
||||
'enabled': args.enabled,
|
||||
'enabled': strutils.bool_from_string(args.enabled, strict=True),
|
||||
}
|
||||
|
||||
resp = service.cluster_attach_policy(args.id, args.policy, **kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user