Skip to content

Commit

Permalink
fix wrong way of checking if config option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosch86 committed Apr 1, 2022
1 parent 3db44a1 commit 850c398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stand-up.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def keyToFingerprint(publicKey):
if os.getenv('GCLOUD_API_KEY_FILE', False) and not args.gcloud_api_key_file:
logger.info('using GCloud api key file from environment')
cloudkeys['gcloud'] = os.getenv('GCLOUD_API_KEY_FILE', False)
elif args.gcloud_api_key_file:
elif vars(args).get('gcloud_api_key_file'):
logger.debug("using GCloud api key file from arguments")
cloudkeys['gcloud'] = args.gcloud_api_key_file

Expand Down

0 comments on commit 850c398

Please sign in to comment.