You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/11/13 13:04:37 UTC
[3/3] libcloud git commit: Add t2 nodes to us-west-1 region in the
EC2 driver.
Add t2 nodes to us-west-1 region in the EC2 driver.
Closes #388
Signed-off-by: Tomaz Muraus <to...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8cabf0bb
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8cabf0bb
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8cabf0bb
Branch: refs/heads/trunk
Commit: 8cabf0bb0602e80c94bb655450c256886649147f
Parents: 5e08687
Author: Matt Lehman <ma...@gmail.com>
Authored: Wed Nov 12 16:29:55 2014 -0500
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Nov 13 19:46:11 2014 +0800
----------------------------------------------------------------------
CHANGES.rst | 4 ++++
libcloud/compute/drivers/ec2.py | 5 ++++-
libcloud/test/compute/test_ec2.py | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/8cabf0bb/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 09c0212..fc4c273 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,10 @@ Compute
(GITHUB-386)
[ZuluPro]
+- Add missing t2. instance types to the us-west-1 region in the EC2 driver.
+ (GITHUB-388)
+ [Matt Lehman]
+
Changes with Apache Libcloud 0.16.0
-----------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/8cabf0bb/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 87e6afa..04ab11b 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -448,7 +448,10 @@ REGION_DETAILS = {
'r3.xlarge',
'r3.2xlarge',
'r3.4xlarge',
- 'r3.8xlarge'
+ 'r3.8xlarge',
+ 't2.micro',
+ 't2.small',
+ 't2.medium'
]
},
# US West (Oregon) Region
http://git-wip-us.apache.org/repos/asf/libcloud/blob/8cabf0bb/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index 4a2a2e6..8dfaac0 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -384,7 +384,7 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
self.assertTrue('cc2.8xlarge' in ids)
self.assertTrue('cr1.8xlarge' in ids)
elif region_name == 'us-west-1':
- self.assertEqual(len(sizes), 29)
+ self.assertEqual(len(sizes), 32)
if region_name == 'us-west-2':
self.assertEqual(len(sizes), 29)
elif region_name == 'ap-southeast-1':