Skip to content

Commit

Permalink
Update environment var names
Browse files Browse the repository at this point in the history
  • Loading branch information
aknuds1 committed Jan 5, 2016
1 parent ec91615 commit 436650b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backup_rethinkdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def backup_rethinkdb(rethinkdb_host, s3_bucket, remove_local_backup):
if s3_bucket:
_logger.info('Uploading \'{}\' to S3 bucket \'{}\'...'.format(filename,
s3_bucket))
access_key_id = get_environment_value('AWS_ACCESS_KEY_ID')
secret = get_environment_value('AWS_SECRET_ACCESS_KEY')
access_key_id = get_environment_value('RETHINKDB_BACKUP_AWS_ACCESS_KEY_ID')
secret = get_environment_value('RETHINKDB_BACKUP_AWS_SECRET_ACCESS_KEY')
_logger.debug('Using AWS ACCESS KEY ID {}'.format(access_key_id))
s3_client = boto3.client('s3', region_name='eu-central-1',
aws_access_key_id=access_key_id,
Expand Down
2 changes: 1 addition & 1 deletion schedule-rethinkdb-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _backup(loop):
try:
backup_rethinkdb(
get_environment_value('RETHINKDB_HOST'),
get_environment_value('S3_BUCKET'), True)
get_environment_value('RETHINKDB_BACKUP_S3_BUCKET'), True)
except Exception as err:
import traceback
traceback.print_exc()
Expand Down

0 comments on commit 436650b

Please sign in to comment.