Merge "Make sure _CLI_OPTS def style uniform"

This commit is contained in:
Jenkins 2017-05-03 16:08:00 +00:00 committed by Gerrit Code Review
commit d2b07c553d
1 changed files with 9 additions and 10 deletions

View File

@ -157,7 +157,7 @@ _CLI_OPTS = [
help='The base image name. Default is the same with base'), help='The base image name. Default is the same with base'),
cfg.StrOpt('base-arch', default='x86_64', cfg.StrOpt('base-arch', default='x86_64',
choices=BASE_ARCH, choices=BASE_ARCH,
help='The base architecture.'), help='The base architecture'),
cfg.BoolOpt('debug', short='d', default=False, cfg.BoolOpt('debug', short='d', default=False,
help='Turn on debugging log level'), help='Turn on debugging log level'),
cfg.BoolOpt('skip-parents', default=False, cfg.BoolOpt('skip-parents', default=False,
@ -173,8 +173,7 @@ _CLI_OPTS = [
cfg.StrOpt('namespace', short='n', default='kolla', cfg.StrOpt('namespace', short='n', default='kolla',
help='The Docker namespace name'), help='The Docker namespace name'),
cfg.BoolOpt('cache', default=True, cfg.BoolOpt('cache', default=True,
help='Use the Docker cache when building', help='Use the Docker cache when building'),
),
cfg.MultiOpt('profile', types.String(), short='p', cfg.MultiOpt('profile', types.String(), short='p',
help=('Build a pre-defined set of images, see [profiles]' help=('Build a pre-defined set of images, see [profiles]'
' section in config. The default profiles are:' ' section in config. The default profiles are:'
@ -186,7 +185,7 @@ _CLI_OPTS = [
cfg.IntOpt('push-threads', default=1, min=1, cfg.IntOpt('push-threads', default=1, min=1,
help=('The number of threads to user while pushing' help=('The number of threads to user while pushing'
' Images. Note: Docker can not handle threading' ' Images. Note: Docker can not handle threading'
' push properly.')), ' push properly')),
cfg.IntOpt('retries', short='r', default=3, min=0, cfg.IntOpt('retries', short='r', default=3, min=0,
help='The number of times to retry while building'), help='The number of times to retry while building'),
cfg.MultiOpt('regex', types.String(), positional=True, cfg.MultiOpt('regex', types.String(), positional=True,
@ -200,7 +199,7 @@ _CLI_OPTS = [
' dependency in Graphviz dot format')), ' dependency in Graphviz dot format')),
cfg.StrOpt('format', short='f', default='json', cfg.StrOpt('format', short='f', default='json',
choices=['json', 'none'], choices=['json', 'none'],
help=('Format to write the final results in')), help='Format to write the final results in'),
cfg.StrOpt('tarballs-base', default=TARBALLS_BASE, cfg.StrOpt('tarballs-base', default=TARBALLS_BASE,
help='Base url to OpenStack tarballs'), help='Base url to OpenStack tarballs'),
cfg.StrOpt('type', short='t', default='binary', cfg.StrOpt('type', short='t', default='binary',
@ -211,20 +210,20 @@ _CLI_OPTS = [
cfg.IntOpt('threads', short='T', default=8, min=1, cfg.IntOpt('threads', short='T', default=8, min=1,
help=('The number of threads to use while building.' help=('The number of threads to use while building.'
' (Note: setting to one will allow real time' ' (Note: setting to one will allow real time'
' logging.)')), ' logging)')),
cfg.StrOpt('tag', default=version.cached_version_string(), cfg.StrOpt('tag', default=version.cached_version_string(),
help='The Docker tag'), help='The Docker tag'),
cfg.BoolOpt('template-only', default=False, cfg.BoolOpt('template-only', default=False,
help=("Don't build images. Generate Dockerfile only")), help="Don't build images. Generate Dockerfile only"),
cfg.IntOpt('timeout', default=120, cfg.IntOpt('timeout', default=120,
help='Time in seconds after which any operation times out'), help='Time in seconds after which any operation times out'),
cfg.MultiOpt('template-override', types.String(), cfg.MultiOpt('template-override', types.String(),
help='Path to template override file'), help='Path to template override file'),
cfg.StrOpt('logs-dir', help='Path to logs directory'), cfg.StrOpt('logs-dir', help='Path to logs directory'),
cfg.BoolOpt('pull', default=True, cfg.BoolOpt('pull', default=True,
help='Attempt to pull a newer version of the base image.'), help='Attempt to pull a newer version of the base image'),
cfg.StrOpt('work-dir', help='Path to be used as working directory.' cfg.StrOpt('work-dir', help=('Path to be used as working directory.'
'By default, a temporary dir is created.'), 'By default, a temporary dir is created')),
] ]
_BASE_OPTS = [ _BASE_OPTS = [