Add fallback s3 config values

This commit is contained in:
Kevin Sawicki 2016-05-24 17:16:04 -07:00
parent 94c8b0e1b1
commit 1bdb9f3de0

View file

@ -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')