From e1375bb3b339a350204b4f848728b9a03fa031db Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Fri, 25 Sep 2015 14:48:16 +0900 Subject: [PATCH] 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 --- senlinclient/v1/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/senlinclient/v1/shell.py b/senlinclient/v1/shell.py index 7b00b437..99f9cb1b 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -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='', default=50, +@utils.arg('-l', '--enforcement-level', metavar='', help=_('An integer beteen 0 and 100 representing the enforcement ' 'level. Default to enforcement level of policy.')) -@utils.arg('-c', '--cooldown', metavar='', default=0, +@utils.arg('-c', '--cooldown', metavar='', 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",