From 8e9272e4a204066aefce0f5c8937c16969c09613 Mon Sep 17 00:00:00 2001 From: Haiwei Xu Date: Fri, 12 Jun 2015 13:45:51 +0900 Subject: [PATCH] Change max_size's default value to -1 when creating a cluster When creating a cluster without configuring max_size option, the default value shoule be -1, which means unlimited. Change-Id: I401dff105971bb522319c3179d28eefcde1629c6 --- 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 56d713d4..a378fb1c 100644 --- a/senlinclient/v1/shell.py +++ b/senlinclient/v1/shell.py @@ -595,8 +595,8 @@ def _show_cluster(sc, cluster_id): help=_('Profile Id used for this cluster.')) @utils.arg('-n', '--min-size', metavar='', default=0, help=_('Min size of the cluster. Default to 0.')) -@utils.arg('-m', '--max-size', metavar='', default=0, - help=_('Max size of the cluster. Default to 0, means unlimtated.')) +@utils.arg('-m', '--max-size', metavar='', default=-1, + help=_('Max size of the cluster. Default to -1, means unlimtated.')) @utils.arg('-c', '--desired-capacity', metavar='', default=0, help=_('Desired capacity of the cluster. Default to 0.')) @utils.arg('-o', '--parent', metavar='',