libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/3] libcloud git commit: Fixed keyword argument and local variable names.
Date Mon, 21 Aug 2017 09:03:58 GMT
Fixed keyword argument and local variable names.

Closes #1091


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

Branch: refs/heads/trunk
Commit: ae2b46a9315b6d7310994f5514307eb4df13d198
Parents: cc99a1a
Author: Aki Ketolainen <aki@siroic.com>
Authored: Mon Aug 21 11:26:24 2017 +0300
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Aug 21 19:02:37 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ae2b46a9/libcloud/compute/drivers/azure_arm.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py
index ca92535..ec71af4 100644
--- a/libcloud/compute/drivers/azure_arm.py
+++ b/libcloud/compute/drivers/azure_arm.py
@@ -1610,7 +1610,7 @@ class AzureNodeDriver(NodeDriver):
         return [self._to_ip_address(net) for net in r.object["value"]]
 
     def ex_create_public_ip(self, name, resource_group, location=None,
-                            publicIPAllocationMethod=None):
+                            public_ip_allocation_method=None):
         """
         Create a public IP resources.
 
@@ -1624,10 +1624,10 @@ class AzureNodeDriver(NodeDriver):
         (if None, use default location specified as 'region' in __init__)
         :type location: :class:`.NodeLocation`
 
-        :param publicIPAllocationMethod: Call ex_create_public_ip with
-        publicIPAllocationMethod="Static" to create a static public
+        :param public_ip_allocation_method: Call ex_create_public_ip with
+        public_ip_allocation_method="Static" to create a static public
         IP address
-        :type publicIPAllocationMethod: ``str``
+        :type public_ip_allocation_method: ``str``
 
         :return: The newly created public ip object
         :rtype: :class:`.AzureIPAddress`
@@ -1649,7 +1649,7 @@ class AzureNodeDriver(NodeDriver):
             }
         }
 
-        if publicIPAllocationMethod == "Static":
+        if public_ip_allocation_method == "Static":
             data['properties']['publicIPAllocationMethod'] = "Static"
 
         r = self.connection.request(target,


Mime
View raw message