Skip to content

Commit

Permalink
Change is_new_config to existing_config
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmogos committed Sep 16, 2020
1 parent 2f958e5 commit 39fbc3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployer/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def deploy_config(config_name):
print("Folder: " + config_folder + " does not exist")
exit()

is_new_config = config_name in fetchers.get_configs_from_repos()
config_exists = config_name in fetchers.get_configs_from_repos()

# Not using the config manager to avoid it stashing the config that we want to push
helpers.check_output_decoded(['git', 'add', config_name + '.json'],
Expand All @@ -52,7 +52,7 @@ def deploy_config(config_name):
cwd=config_folder)

# Already live, we will only update the change
if is_new_config:
if config_exists:
deploy_configs([], [config_name], [], force_deploy=True)
# Didn't exist, we add it
else:
Expand Down

0 comments on commit 39fbc3a

Please sign in to comment.