Repository: libcloud Updated Branches: refs/heads/trunk 039ecec20 -> 49a1b016d
[LIBCLOUD-613] Allow user to pass "gp2" for "ex_volume_type" argument to the create_volume method in the EC2 driver. Reported by Xavier Barbosa. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/49a1b016 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/49a1b016 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/49a1b016 Branch: refs/heads/trunk Commit: 49a1b016d46d624c3d6b559f710a076d9bbd5b82 Parents: 039ecec Author: Tomaz Muraus <[email protected]> Authored: Wed Sep 10 20:25:41 2014 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Wed Sep 10 20:25:41 2014 +0200 ---------------------------------------------------------------------- CHANGES.rst | 6 ++++++ libcloud/compute/drivers/ec2.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/49a1b016/CHANGES.rst ---------------------------------------------------------------------- diff --git a/CHANGES.rst b/CHANGES.rst index 42227ab..c7e0a1e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -92,6 +92,12 @@ Compute - Add support for Amazon GovCloud to the EC2 driver (us-gov-west-1 region). [Chris DeRamus] +- Allow user to pass "gp2" for "ex_volume_type" argument to the create_volume + method in the EC2 driver. + + Reported by Xavier Barbosa. + [Tomaz Muraus, Xavier Barbosa] + Storage ~~~~~~~ http://git-wip-us.apache.org/repos/asf/libcloud/blob/49a1b016/libcloud/compute/drivers/ec2.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py index 6a44d32..693e5c3 100644 --- a/libcloud/compute/drivers/ec2.py +++ b/libcloud/compute/drivers/ec2.py @@ -2280,7 +2280,7 @@ class BaseEC2NodeDriver(NodeDriver): is io1. :type iops: ``int`` """ - valid_volume_types = ['standard', 'io1', 'g2'] + valid_volume_types = ['standard', 'io1', 'gp2'] params = { 'Action': 'CreateVolume',
