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 <[email protected]>
Authored: Wed Oct 23 22:33:58 2013 +0200
Committer: Tomaz Muraus <[email protected]>
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):

Reply via email to