aboutsummaryrefslogtreecommitdiff
path: root/docker/base/set_configs.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/base/set_configs.py')
-rw-r--r--docker/base/set_configs.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py
index 1d1fc48ae..559f1c0f3 100644
--- a/docker/base/set_configs.py
+++ b/docker/base/set_configs.py
@@ -272,21 +272,8 @@ def validate_source(data):
def load_config():
- def load_from_env():
- config_raw = os.environ.get("KOLLA_CONFIG")
- if config_raw is None:
- return None
-
- # Attempt to read config
- try:
- return json.loads(config_raw)
- except ValueError:
- raise InvalidConfig('Invalid json for Kolla config')
-
def load_from_file():
- config_file = os.environ.get("KOLLA_CONFIG_FILE")
- if not config_file:
- config_file = '/var/lib/kolla/config_files/config.json'
+ config_file = '/var/lib/kolla/config_files/config.json'
LOG.info("Loading config file at %s", config_file)
# Attempt to read config file
@@ -300,9 +287,7 @@ def load_config():
raise InvalidConfig(
"Could not read file %s: %r" % (config_file, e))
- config = load_from_env()
- if config is None:
- config = load_from_file()
+ config = load_from_file()
LOG.info('Validating config file')
validate_config(config)