Fix test failure under 3.2 and 3.3.

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

Branch: refs/heads/trunk
Commit: 260e305d2f7516a65423f31b3795d777c3af87ba
Parents: 54b778f
Author: Tomaz Muraus <[email protected]>
Authored: Thu Aug 29 13:48:13 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Thu Aug 29 13:48:13 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudstack.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/260e305d/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py 
b/libcloud/compute/drivers/cloudstack.py
index d870cbf..8306dfe 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -256,6 +256,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, 
NodeDriver):
                     private_ips.append(nic['ipaddress'])
 
             public_ips = public_ips_map.get(vm['id'], {}).keys()
+            public_ips = list(public_ips)
             public_ips.extend([ip for ip in private_ips
                               if not is_private_subnet(ip)])
 

Reply via email to