Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
check that config file exists in fab env validation [issue 98]
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedetto Lo Giudice committed May 8, 2015
1 parent 0d9302d commit db2b3f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap_cfn/fab_tasks.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def _validate_fabric_env():
if env.config is None:
print "\n[ERROR] Please specify a config file, e.g 'config:/tmp/sample-application.yaml'"
sys.exit(1)
elif not os.path.isfile(env.config):
sys.exit("\n[ERROR] Config file %s does not exist" % str(env.config))

if env.stack_passwords is not None and not os.path.exists(env.stack_passwords):
print >> sys.stderr, "\n[ERROR] Passwords file '{0}' doesn't exist!".format(env.stack_passwords)
Expand Down

0 comments on commit db2b3f5

Please sign in to comment.