aboutsummaryrefslogtreecommitdiff
path: root/kolla/common
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/common')
-rw-r--r--kolla/common/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 31836c4ba..83ccfb0fb 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -56,10 +56,12 @@ _CLI_OPTS = [
cfg.StrOpt('base', short='b', default='centos',
choices=BASE_OS_DISTRO,
deprecated_group='kolla-build',
- help='The base distro to use when building'),
+ help='The distro type of the base image'),
cfg.StrOpt('base-tag', default='latest',
deprecated_group='kolla-build',
help='The base distro image tag'),
+ cfg.StrOpt('base-image', default=None,
+ help='The base image name. Default is the same with base'),
cfg.BoolOpt('debug', short='d', default=False,
deprecated_group='kolla-build',
help='Turn on debugging log level'),
@@ -288,3 +290,5 @@ def parse(conf, args, usage=None, prog=None,
prog=prog,
version=version.cached_version_string(),
default_config_files=default_config_files)
+ if not conf.base_image:
+ conf.base_image = conf.base