Remove default value when attaching a policy
The default value will overwrite the attributes of policy, when options(level, cooldown) are not configured, use the policy's default values. Change-Id: I4137bb81c82dcca3b96e6c4ec441dc3a27951eaf
This commit is contained in:
@@ -981,10 +981,10 @@ def do_cluster_policy_show(sc, args):
|
||||
help=_('An integer specifying the relative priority among '
|
||||
'all policies attached to a cluster. The lower the '
|
||||
'value, the higher the priority. Default is 50.'))
|
||||
@utils.arg('-l', '--enforcement-level', metavar='<LEVEL>', default=50,
|
||||
@utils.arg('-l', '--enforcement-level', metavar='<LEVEL>',
|
||||
help=_('An integer beteen 0 and 100 representing the enforcement '
|
||||
'level. Default to enforcement level of policy.'))
|
||||
@utils.arg('-c', '--cooldown', metavar='<SECONDS>', default=0,
|
||||
@utils.arg('-c', '--cooldown', metavar='<SECONDS>',
|
||||
help=_('An integer indicating the cooldown seconds once the '
|
||||
'policy is effected. Default to cooldown of policy.'))
|
||||
@utils.arg('-e', '--enabled', default=True, action="store_true",
|
||||
|
||||
Reference in New Issue
Block a user