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 <[email protected]> Authored: Sun Nov 8 14:09:10 2015 +0100 Committer: Tomaz Muraus <[email protected]> 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 = []
