Skip to content

Commit

Permalink
Merge branch 'hotfix/0.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Dahlgren committed May 24, 2015
2 parents 13553f8 + 0f30a06 commit f4b944f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ You can also restart it using
Release notes
-------------

0.4.1
^^^^^

- Fix for logging incorrect region information when using instance role (`#19 <https://github.com/skymill/automated-ebs-snapshots/pull/19>`__). Thanks `@robaman <https://github.com/robaman>`__ for the pull request

0.4.0
^^^^^

Expand Down
3 changes: 2 additions & 1 deletion automated_ebs_snapshots/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def connect_to_ec2(region='us-east-1', access_key=None, secret_key=None):
:param secret_key: AWS secret access key
:returns: boto.ec2.connection.EC2Connection -- EC2 connection
"""
logger.info('Connecting to AWS EC2 in {}'.format(region))

if access_key:
# Connect using supplied credentials
logger.info('Connecting to AWS EC2 in {}'.format(region))
connection = ec2.connect_to_region(
region,
aws_access_key_id=access_key,
Expand All @@ -37,6 +37,7 @@ def connect_to_ec2(region='us-east-1', access_key=None, secret_key=None):
pass

# Connect using env vars or boto credentials
logger.info('Connecting to AWS EC2 in {}'.format(region))
connection = ec2.connect_to_region(region)

if not connection:
Expand Down
2 changes: 1 addition & 1 deletion automated_ebs_snapshots/settings.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[general]
version: 0.4.0
version: 0.4.1

0 comments on commit f4b944f

Please sign in to comment.