Skip to content

Commit

Permalink
Bugfix/deployment files (#24)
Browse files Browse the repository at this point in the history
* ✔️ Added validation for config_file being in the same directory

* 🐛 Added check for wildcard in the name of the config file

* 🔧 Changed if condition
  • Loading branch information
alubneuski committed Nov 24, 2021
1 parent 1c3a742 commit ce71c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d3b_cli_igor/deploy_ops/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def execute_deploy(account_name, organization, region, environment, config_file,
sys.exit(exit_status)

def deploy(account_name, organization, region, environment, config_file, mode, debug=False):
if (not exists(config_file) and "*.deploy" not in config_file):
if (not exists(config_file) and "*." not in config_file):
logger.error("File "+ config_file +" does not exist")
sys.exit(1)
if("*.deploy" in config_file or "*.destroy" in config_file):
Expand Down

0 comments on commit ce71c2c

Please sign in to comment.