libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [28/34] libcloud git commit: fixing for parameter name change
Date Thu, 22 Jun 2017 03:11:32 GMT
fixing for parameter name change


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

Branch: refs/heads/trunk
Commit: 8968313a008526679915c5416c07cc33c14bf6f1
Parents: 1ed137b
Author: andy <andymaheshw@gmail.com>
Authored: Tue Jun 20 08:41:02 2017 -0400
Committer: andy <andymaheshw@gmail.com>
Committed: Tue Jun 20 08:41:02 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8968313a/libcloud/container/drivers/gke.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/gke.py b/libcloud/container/drivers/gke.py
index f95ddf7..9c678f8 100644
--- a/libcloud/container/drivers/gke.py
+++ b/libcloud/container/drivers/gke.py
@@ -156,8 +156,8 @@ class GKEContainerDriver(KubernetesContainerDriver):
         :type     ex_zone:  ``str`` or :class:`GCEZone` or
                             :class:`NodeLocation` or ``None``
         """
-        request = "/zones/%s/clusters" % (zone)
-        if zone is None:
+        request = "/zones/%s/clusters" % (ex_zone)
+        if ex_zone is None:
             request = "/zones/clusters"
 
         response = self.connection.request(request, method='GET').object
@@ -171,9 +171,9 @@ class GKEContainerDriver(KubernetesContainerDriver):
         :type     ex_zone:  ``str`` or :class:`GCEZone` or
                             :class:`NodeLocation` or ``None``
         """
-        if zone is None:
-            zone = self.zone
-        request = "/zones/%s/serverconfig" % (zone)
+        if ex_zone is None:
+            ex_zone = self.zone
+        request = "/zones/%s/serverconfig" % (ex_zone)
 
         response = self.connection.request(request, method='GET').object
         return response


Mime
View raw message