Skip to content

Commit

Permalink
Merge pull request #2 from Answers4AWS/master
Browse files Browse the repository at this point in the history
update to 1.0.7
  • Loading branch information
msusta committed Feb 22, 2016
2 parents f95291d + c6e0dea commit 8edafb5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ DistAMI
:target: https://travis-ci.org/Answers4AWS/distami
:alt: Build Status

.. image:: https://pypip.in/d/distami/badge.png
:target: https://pypi.python.org/pypi/distami
:alt: PyPI Downloads

.. image:: https://pypip.in/v/distami/badge.png
:target: https://pypi.python.org/pypi/distami
:alt: PyPI Version

Distributes an AMI by copying it to one, many, or all AWS regions, and by optionally making the AMIs and Snapshots public or shared with specific AWS Accounts.

Usage
Expand Down
2 changes: 1 addition & 1 deletion distami/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.

__author__ = 'Peter Sankauskas'
__version__ = '1.0.5'
__version__ = '1.0.7'
3 changes: 3 additions & 0 deletions distami/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def get_regions_to_copy_to(source_region):
# Filter out GovCloud
if region.name == 'us-gov-west-1':
continue
# Filter out China
if region.name == 'cn-north-1':
continue
regions.append(region.name)

return regions
Expand Down
7 changes: 2 additions & 5 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@

import unittest

from distami import utils
from distami import utils

class UtilTests(unittest.TestCase):
def test_get_regions_to_copy_to(self):
all_public_regions = ['ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'eu-west-1']
all_public_regions = ['ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1', 'eu-west-1', 'eu-central-1']
regions = utils.get_regions_to_copy_to('not-a-real-region')
self.assertItemsEqual(regions, all_public_regions)



0 comments on commit 8edafb5

Please sign in to comment.