You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/04/13 14:00:51 UTC

[5/5] libcloud git commit: allow for private IPv4 when adding a NIC Closes #743

allow for private IPv4 when adding a NIC
Closes #743


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

Branch: refs/heads/trunk
Commit: 965d4fe4f4f1b1edd7fb0c76ad15d39e395253cb
Parents: 44d7217
Author: Bernard Paques <be...@gmail.com>
Authored: Tue Apr 12 22:33:57 2016 +0200
Committer: anthony-shaw <an...@apache.org>
Committed: Wed Apr 13 21:58:45 2016 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/965d4fe4/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 723f21c..19a3856 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -822,7 +822,7 @@ class DimensionDataNodeDriver(NodeDriver):
 
         if vlan is not None:
             ET.SubElement(nic, 'vlanId').text = vlan.id
-        elif primary_ipv4 is not None:
+        elif private_ipv4 is not None:
             ET.SubElement(nic, 'privateIpv4').text = private_ipv4
         else:
             raise ValueError("One of vlan or primary_ipv4 "