From 1bdb9f3de07eff6c0c6d05b83f8b82e0021cfdd1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 24 May 2016 17:16:04 -0700 Subject: [PATCH] Add fallback s3 config values --- script/lib/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/script/lib/config.py b/script/lib/config.py index 485ed48f80d0..a48c5ac5cdba 100644 --- a/script/lib/config.py +++ b/script/lib/config.py @@ -46,9 +46,10 @@ def get_chromedriver_version(): def s3_config(): - config = (os.environ.get('ELECTRON_S3_BUCKET', ''), - os.environ.get('ELECTRON_S3_ACCESS_KEY', ''), - os.environ.get('ELECTRON_S3_SECRET_KEY', '')) + # TODO Remove ATOM_SHELL_* fallback values + config = (os.environ.get('ELECTRON_S3_BUCKET', os.environ.get('ATOM_SHELL_S3_BUCKET', '')), + os.environ.get('ELECTRON_S3_ACCESS_KEY', os.environ.get('ATOM_SHELL_S3_ACCESS_KEY', '')), + os.environ.get('ELECTRON_S3_SECRET_KEY', os.environ.get('ATOM_SHELL_S3_SECRET_KEY', ''))) message = ('Error: Please set the $ELECTRON_S3_BUCKET, ' '$ELECTRON_S3_ACCESS_KEY, and ' '$ELECTRON_S3_SECRET_KEY environment variables')