From 11c6457164f2c07ab01fddf1c493694301457e8f Mon Sep 17 00:00:00 2001
From: "Swapnil Kulkarni (coolsvap)" <me@coolsvap.net>
Date: Tue, 12 Apr 2016 15:34:24 +0530
Subject: [PATCH] Add missing base os values to kolla-build.conf

Added centos, ubuntu, oraclelinux.
Not added other base distros are not
well maintained currently.

Change-Id: Icb1c12dde2ff005068f1b0f36693049f9ea30f52
Closes-Bug:#1569265
---
 kolla/common/config.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kolla/common/config.py b/kolla/common/config.py
index b9ab56b3ed..1d7fb88d41 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -18,6 +18,7 @@ from oslo_config import types
 from kolla.version import version_info as version
 
 
+BASE_OS_DISTRO = ['centos', 'ubuntu', 'oraclelinux']
 RDO_MIRROR = "http://trunk.rdoproject.org/centos7"
 DELOREAN = "{}/current-passed-ci/delorean.repo".format(RDO_MIRROR)
 DELOREAN_DEPS = "{}/delorean-deps.repo".format(RDO_MIRROR)
@@ -57,6 +58,7 @@ _PROFILE_OPTS = [
 
 _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'),
     cfg.StrOpt('base-tag', default='latest',