libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject git commit: Allow user to pass ex_ebs_optimized argument to the create_node method in the EC2 driver.
Date Mon, 07 Apr 2014 15:08:00 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk e780066b2 -> 502846370


Allow user to pass ex_ebs_optimized argument to the create_node method
in the EC2 driver.

Closes #272


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/50284637
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/50284637
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/50284637

Branch: refs/heads/trunk
Commit: 502846370576fa3b11ad0cff7f4ad72b3743be73
Parents: e780066
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Mon Apr 7 08:55:07 2014 -0600
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Mon Apr 7 08:56:58 2014 -0600

----------------------------------------------------------------------
 CHANGES.rst                     | 5 +++++
 libcloud/compute/drivers/ec2.py | 6 ++++++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/50284637/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index b98df33..616656a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -76,6 +76,11 @@ Compute
 - Add ex_revoke_security_group_ingress method to the CloudStack driver.
   [Chris DeRamus, Tomaz Muraus]
 
+- Allow user to pass ex_ebs_optimized argument to the create_node method
+  in the EC2 driver.
+  (GITHUB-272)
+  [zerthimon]
+
 Load Balancer
 ~~~~~~~~~~~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/50284637/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 4d75fa3..bac7f8d 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -1362,6 +1362,9 @@ class BaseEC2NodeDriver(NodeDriver):
 
         :keyword    ex_iamprofile: Name or ARN of IAM profile
         :type       ex_iamprofile: ``str``
+
+        :keyword    ex_ebs_optimized: EBS-Optimized if True
+        :type       ex_ebs_optimized: ``bool``
         """
         image = kwargs["image"]
         size = kwargs["size"]
@@ -1430,6 +1433,9 @@ class BaseEC2NodeDriver(NodeDriver):
             else:
                 params['IamInstanceProfile.Name'] = kwargs['ex_iamprofile']
 
+        if 'ex_ebs_optimized' in kwargs:
+            params['EbsOptimized'] = kwargs['ex_ebs_optimized']
+
         object = self.connection.request(self.path, params=params).object
         nodes = self._to_nodes(object, 'instancesSet/item')
 


Mime
View raw message