libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/4] libcloud git commit: Fix Public IP not assigned when creating NIC on Azure ARM Closes #1013
Date Sat, 01 Apr 2017 22:57:12 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk cab68602c -> 4c9d0333a


Fix Public IP not assigned when creating NIC on Azure ARM
Closes #1013


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

Branch: refs/heads/trunk
Commit: 3baa15badbd5c62b43366a6357a151cdb6d444c0
Parents: cab6860
Author: ripa1993 <simone.ripamonti.1993@gmail.com>
Authored: Thu Mar 23 16:11:21 2017 +0100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Sun Apr 2 08:50:20 2017 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/azure_arm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3baa15ba/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 9084099..6143925 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1013,7 +1013,8 @@ class AzureNodeDriver(NodeDriver):
         }
 
         if public_ip:
-            data["properties"]["ipConfigurations"][0]["publicIPAddress"] = {
+            ip_config = data["properties"]["ipConfigurations"][0]
+            ip_config["properties"]["publicIPAddress"] = {
                 "id": public_ip.id
             }
 


Mime
View raw message