libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/3] libcloud git commit: Use keyword args to make it more explicit.
Date Sun, 08 Nov 2015 13:15:56 GMT
Use keyword args to make it more explicit.


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

Branch: refs/heads/trunk
Commit: 59ce9031b854bc29926596f627bd0a6e271a1dd5
Parents: b37548b
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sun Nov 8 14:09:10 2015 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Nov 8 14:09:10 2015 +0100

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudstack.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/59ce9031/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py
index 7f7fd85..dd8f25e 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -1454,8 +1454,9 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
 
         node = self._to_node(data=vm, public_ips=list(public_ips.keys()))
 
-        addresses = [CloudStackAddress(address_id, address, node.driver)
-                     for address, address_id in public_ips.items()]
+        addresses = [CloudStackAddress(id=address_id, address=address,
+                                       driver=node.driver) for
+                     address, address_id in public_ips.items()]
         node.extra['ip_addresses'] = addresses
 
         rules = []


Mime
View raw message