diff --git a/generate_sites.py b/generate_sites.py index 53b2756..6575464 100644 --- a/generate_sites.py +++ b/generate_sites.py @@ -77,13 +77,13 @@ def deep_key_update(dict_to_update: dict, key_path: list, value) -> dict: # -------------------------------Update Server Template------------------------------------------- with open(os.path.join(template_yaml_directory, 'server_deployment_template.yaml'), 'r') as fd: - server_site_deployment = yaml.safe_load(fd) + server_deployment = yaml.safe_load(fd) -deep_key_update(server_site_deployment, ['spec', 'template', 'spec', 'containers', 0, 'env', 3], +deep_key_update(server_deployment, ['spec', 'template', 'spec', 'containers', 0, 'env', 3], all_domains_env) with open(os.path.join(k8_server, 'server_deployment.yaml'), 'w') as fd: - yaml.dump(server_site_deployment, fd) + yaml.dump(server_deployment, fd) # -------------------------------Might as well Update Properties File----------------------------- config = ConfigObj("config.properties")