Merge "Add type validation and default for some parameter"

This commit is contained in:
Jenkins
2015-12-21 11:27:19 +00:00
committed by Gerrit Code Review
3 changed files with 4 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class ShellTest(shell_test_base.TestCommandLineArgument):
'--network-driver test_driver '
'--labels key=val '
'--master-flavor-id test_flavor '
'--docker-volume-size 10'
'--docker-volume-size 10 '
'--public')
self.assertTrue(mock_create.called)

View File

@@ -69,6 +69,7 @@ def _show_baymodel(baymodel):
'of the bay.')
@utils.arg('--docker-volume-size',
metavar='<docker-volume-size>',
type=int,
help='Specify the number of size in GB '
'for the docker volume to use.')
@utils.arg('--http-proxy',

View File

@@ -51,6 +51,8 @@ def do_bay_list(cs, args):
help='Specifies custom discovery url for node discovery.')
@utils.arg('--timeout',
metavar='<timeout>',
type=int,
default=0,
help='The timeout for bay creation in minutes. Set '
'to 0 for no timeout. The default is no timeout.')
def do_bay_create(cs, args):