Skip to content

Commit

Permalink
Fix config_exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmogos committed Sep 28, 2020
1 parent c9d9461 commit a454771
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 @@ -39,7 +39,7 @@ def deploy_config(config_name, config_exists, push_config=True):

# config_exists = config_name in fetchers.get_configs_from_repos()

if push_config == True:
if push_config == 'True':
# 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'],
cwd=config_folder)
Expand All @@ -53,7 +53,7 @@ def deploy_config(config_name, config_exists, push_config=True):
config_manager = ConfigManager().instance
print(config_exists)
# Already live, we will only update the change
if config_exists is True:
if config_exists == 'True':
deploy_configs([], [config_name], [], force_deploy=True)
# Didn't exist, we add it
else:
Expand Down

0 comments on commit a454771

Please sign in to comment.