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 2013/10/23 22:37:12 UTC
[2/2] git commit: Pep8 and fix ex_owner handling in the list_images
method.
Pep8 and fix ex_owner handling in the list_images method.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/77c69248
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/77c69248
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/77c69248
Branch: refs/heads/trunk
Commit: 77c69248da8235c554144b8a2b6bc4a23becaed4
Parents: adde1c5
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Oct 23 22:33:58 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Oct 23 22:33:58 2013 +0200
----------------------------------------------------------------------
libcloud/compute/drivers/ec2.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/77c69248/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index a6cb70a..495f956 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -623,9 +623,9 @@ class BaseEC2NodeDriver(NodeDriver):
state = findtext(element=element, xpath='status', namespace=NAMESPACE)
description = findtext(element=element, xpath='description', namespace=NAMESPACE)
return VolumeSnapshot(snapId, size=int(size), driver=self,
- extra={'volume_id': volId,
- 'description': description,
- 'state': state})
+ extra={'volume_id': volId,
+ 'description': description,
+ 'state': state})
def list_nodes(self, ex_node_ids=None):
"""
@@ -695,7 +695,7 @@ class BaseEC2NodeDriver(NodeDriver):
params = {'Action': 'DescribeImages'}
if ex_owner:
- params.update({'Owner.1': owner})
+ params.update({'Owner.1': ex_owner})
if ex_image_ids:
params.update(self._pathlist('ImageId', ex_image_ids))
@@ -1311,7 +1311,7 @@ class BaseEC2NodeDriver(NodeDriver):
response = self.connection.request(self.path, params=params).object
public_ip = findtext(element=response, xpath='publicIp',
- namespace=NAMESPACE)
+ namespace=NAMESPACE)
return public_ip
def ex_release_address(self, elastic_ip_address):