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
This commit is contained in:
Haiwei Xu
2015-06-12 13:45:51 +09:00
parent a834e06f60
commit 8e9272e4a2

View File

@@ -595,8 +595,8 @@ def _show_cluster(sc, cluster_id):
help=_('Profile Id used for this cluster.'))
@utils.arg('-n', '--min-size', metavar='<MIN-SIZE>', default=0,
help=_('Min size of the cluster. Default to 0.'))
@utils.arg('-m', '--max-size', metavar='<MAX-SIZE>', default=0,
help=_('Max size of the cluster. Default to 0, means unlimtated.'))
@utils.arg('-m', '--max-size', metavar='<MAX-SIZE>', default=-1,
help=_('Max size of the cluster. Default to -1, means unlimtated.'))
@utils.arg('-c', '--desired-capacity', metavar='<DESIRED-CAPACITY>', default=0,
help=_('Desired capacity of the cluster. Default to 0.'))
@utils.arg('-o', '--parent', metavar='<PARENT_ID>',