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 2015/05/16 21:43:49 UTC
libcloud git commit: Fixed exception when parsing CloudSigma static
IPs
Repository: libcloud
Updated Branches:
refs/heads/trunk 59cfd4fda -> 78454db46
Fixed exception when parsing CloudSigma static IPs
Closes #514
Signed-off-by: Tomaz Muraus <to...@tomaz.me>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/78454db4
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/78454db4
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/78454db4
Branch: refs/heads/trunk
Commit: 78454db460e31799be477dfa17b54055fb0b0841
Parents: 59cfd4f
Author: Chris O'Brien <ch...@gmail.com>
Authored: Wed May 13 13:14:07 2015 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Sat May 16 21:20:49 2015 +0200
----------------------------------------------------------------------
CHANGES.rst | 5 +++++
libcloud/compute/drivers/cloudsigma.py | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/78454db4/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 5b7ef6f..d6d7658 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -171,6 +171,11 @@ Compute
(LIBCLOUD-678, GITHUB-484)
[Atsushi Sasaki]
+- Fix an issue with ``list_nodes`` in the CloudSigma driver throwing an
+ exception if a node in the list had a static IP.
+ (LIBCLOUD-707, GITHUB-514)
+ [Chris O'Brien]
+
Storage
~~~~~~~
http://git-wip-us.apache.org/repos/asf/libcloud/blob/78454db4/libcloud/compute/drivers/cloudsigma.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudsigma.py b/libcloud/compute/drivers/cloudsigma.py
index 29b65cb..834062c 100644
--- a/libcloud/compute/drivers/cloudsigma.py
+++ b/libcloud/compute/drivers/cloudsigma.py
@@ -1860,8 +1860,11 @@ class CloudSigma_2_0_NodeDriver(CloudSigmaNodeDriver):
ipv4_conf = nic['ip_v4_conf']
ipv6_conf = nic['ip_v6_conf']
- ipv4 = ipv4_conf['ip'] if ipv4_conf else None
- ipv6 = ipv6_conf['ip'] if ipv6_conf else None
+ ip_v4 = ipv4_conf['ip'] if ipv4_conf else None
+ ip_v6 = ipv6_conf['ip'] if ipv6_conf else None
+
+ ipv4 = ip_v4['uuid'] if ip_v4 else None
+ ipv6 = ip_v4['uuid'] if ip_v6 else None
ips = []