libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [09/34] libcloud git commit: update
Date Thu, 22 Jun 2017 03:11:13 GMT
update


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

Branch: refs/heads/trunk
Commit: b0eb0d3131489148cc1ead2a308612c8d91eaaa6
Parents: 01f2c37
Author: andy <andymaheshw@gmail.com>
Authored: Tue Jun 13 21:04:39 2017 -0400
Committer: andy <andymaheshw@gmail.com>
Committed: Tue Jun 13 21:04:39 2017 -0400

----------------------------------------------------------------------
 libcloud/container/drivers/gke.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b0eb0d31/libcloud/container/drivers/gke.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/gke.py b/libcloud/container/drivers/gke.py
index 6900952..7e68b36 100644
--- a/libcloud/container/drivers/gke.py
+++ b/libcloud/container/drivers/gke.py
@@ -1,6 +1,6 @@
 from libcloud.common.google import GoogleOAuth2Credential
 from libcloud.container.providers import Provider
-from libcloud.container.drivers.kubernetes import KubernetesConnection, KubernetesContainerDriver
+from libcloud.container.drivers.kubernetes import KubernetesContainerDriver
 from libcloud.common.google import GoogleResponse
 from libcloud.common.google import GoogleBaseConnection
 API_VERSION = 'v1'
@@ -39,7 +39,6 @@ class GKEConnection(GoogleBaseConnection):
 
     def __init__(self, user_id, key, secure, auth_type=None,
                  credential_file=None, project=None, **kwargs):
-        print("GKE CONNECTION", "auth_type", auth_type, "cred", credential_file)
         super(GKEConnection, self).__init__(
             user_id, key, secure=secure, auth_type=auth_type,
             credential_file=credential_file, **kwargs)
@@ -167,16 +166,13 @@ class GKEContainerDriver(KubernetesContainerDriver):
         request = "/zones/%s/clusters" % (zone)
         if zone is None:
             request = "/zones/clusters"
-        # https://container.googleapis.com/v1/projects/{projectId}/zones/{zone}/clusters
-        print(self.website+self.base_path)
+
         response = self.connection.request(request, method='GET').object
-        print(response)
 
     def get_server_config(self, zone=None):
         """
         """
         request = "/zones/%s/serverconfig" % (zone)
-        # https://container.googleapis.com/v1/projects/{projectId}/zones/{zone}/clusters
-        print(self.website+self.base_path)
+
         response = self.connection.request(request, method='GET').object
-        print(response)
+        return response


Mime
View raw message