Skip to content

Commit

Permalink
last changes to generate_sites
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Quijano committed Apr 19, 2024
1 parent 34fed2d commit 5b07511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5b07511

Please sign in to comment.