You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/21 05:42:55 UTC

[08/16] libcloud git commit: FAM-791 api calls fixed

FAM-791 api calls fixed


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

Branch: refs/heads/trunk
Commit: 7bd3afa74e35a5bf66885d591a420eed149e5ceb
Parents: e78c67e
Author: Hennadii Stas <ut...@gmail.com>
Authored: Thu Mar 30 16:48:11 2017 +0300
Committer: Hennadii Stas <ut...@gmail.com>
Committed: Thu Apr 20 13:04:00 2017 +0300

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7bd3afa7/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 400cb2c..315a3db 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5684,7 +5684,7 @@ class BaseEC2NodeDriver(NodeDriver):
             params.update({'DryRun': dry_run})
 
         if volume_ids:
-            params.update({'VolumeIds': volume_ids})
+            params.update(self._pathlist('VolumeId', volume_ids))
 
         if filters:
             params.update(self._build_filters(filters))
@@ -5835,9 +5835,7 @@ class BaseEC2NodeDriver(NodeDriver):
 
         :rtype:     :class:`EC2VolumeModification`
         """
-        params_element = element.find(
-            fixxpath(xpath='volumeModification', namespace=NAMESPACE))
-        params = self._get_extra_dict(params_element,
+        params = self._get_extra_dict(element,
                                       VOLUME_MODIFICATION_ATTRIBUTE_MAP)
 
         return EC2VolumeModification(**params)