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 2017/04/21 05:36:49 UTC

[2/4] libcloud git commit: commit fix for listing public IP ranges

commit fix for listing public IP ranges


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

Branch: refs/heads/trunk
Commit: 69a80e57852eae5cd08e94dffe9606dbc38d698d
Parents: d5b3dd3
Author: Anthony Shaw <an...@apache.org>
Authored: Fri Apr 21 15:07:43 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Fri Apr 21 15:07:43 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/69a80e57/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index 55aaab3..9a1d5a7 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1048,8 +1048,9 @@ class AzureNodeDriver(NodeDriver):
         :rtype: ``list`` of :class:`.AzureIPAddress`
         """
 
-        action = "/subscriptions/%s/providers/Microsoft.Network" \
-                 "/publicIPAddresses" % (self.subscription_id, resource_group)
+        action = "/subscriptions/%s/resourceGroups/%s/" \
+                 "providers/Microsoft.Network/publicIPAddresses" \
+                 % (self.subscription_id, resource_group)
         r = self.connection.request(action,
                                     params={"api-version": "2015-06-15"})
         return [self._to_ip_address(net) for net in r.object["value"]]