From 850c398299805d219158209ff874ecbbd3b62886 Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 1 Apr 2022 10:30:05 +0400 Subject: [PATCH] fix wrong way of checking if config option is set --- stand-up.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand-up.py b/stand-up.py index e3146a6..f03f910 100755 --- a/stand-up.py +++ b/stand-up.py @@ -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