Skip to content

Commit

Permalink
Merge pull request krysopath#19 from krysopath/dockerhub-hook
Browse files Browse the repository at this point in the history
add default for HOME and PWD if not in ENV
  • Loading branch information
krysopath authored Apr 20, 2019
2 parents b885c71 + 5bb0699 commit 318506c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaultify/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
MODULE_BASE_DIR = os.path.dirname(
os.path.realpath(__file__))
ETC_DEFAULT_CONFIG = '/etc/default/vaultify.yml'
USER_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("HOME"))
LOCAL_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("PWD"))
USER_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("HOME", '.'))
LOCAL_CONFIG = '{}/.vaultify.yml'.format(os.environ.get("PWD", '.'))

CFG_DEFAULT_FILES = [
ETC_DEFAULT_CONFIG,
Expand Down

0 comments on commit 318506c

Please sign in to comment.