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(): def s3_config():
config = (os.environ.get('ELECTRON_S3_BUCKET', ''), # TODO Remove ATOM_SHELL_* fallback values
os.environ.get('ELECTRON_S3_ACCESS_KEY', ''), config = (os.environ.get('ELECTRON_S3_BUCKET', os.environ.get('ATOM_SHELL_S3_BUCKET', '')),
os.environ.get('ELECTRON_S3_SECRET_KEY', '')) 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, ' message = ('Error: Please set the $ELECTRON_S3_BUCKET, '
'$ELECTRON_S3_ACCESS_KEY, and ' '$ELECTRON_S3_ACCESS_KEY, and '
'$ELECTRON_S3_SECRET_KEY environment variables') '$ELECTRON_S3_SECRET_KEY environment variables')