Merge "Fix cluster-resize operation param checking"

This commit is contained in:
Jenkins 2015-08-03 02:11:04 +00:00 committed by Gerrit Code Review
commit 27c244d5b4

View File

@ -815,6 +815,9 @@ def do_cluster_resize(sc, args):
raise exc.CommandError(_("Only one of 'capacity', 'adjustment' and "
"'percentage' can be specified."))
action_args['adjustment_type'] = None
action_args['number'] = None
if capacity is not None:
if capacity < 0:
raise exc.CommandError(_('Cluster capacity must be larger than '