Update
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b9704214 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b9704214 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b9704214 Branch: refs/heads/trunk Commit: b970421475178d80ea27879bc38e9f1c885065b3 Parents: f222792 Author: andy <andymahe...@gmail.com> Authored: Thu Jun 8 08:20:16 2017 -0400 Committer: andy <andymahe...@gmail.com> Committed: Thu Jun 8 08:20:16 2017 -0400 ---------------------------------------------------------------------- libcloud/container/drivers/gke.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/b9704214/libcloud/container/drivers/gke.py ---------------------------------------------------------------------- diff --git a/libcloud/container/drivers/gke.py b/libcloud/container/drivers/gke.py index 96c1f8c..02bb33f 100644 --- a/libcloud/container/drivers/gke.py +++ b/libcloud/container/drivers/gke.py @@ -34,7 +34,7 @@ class GKEConnection(GoogleBaseConnection): [<GCEUrlMap id="..." name="cli-map">, <GCEUrlMap id="..." name="lc-map">] [<GCEUrlMap id="..." name="web-map">] """ - host = 'www.googleapis.com' + host = 'container.googleapis.com' responseCls = GKEResponse def __init__(self, user_id, key, secure, auth_type=None, @@ -85,7 +85,7 @@ class GKEContainerDriver(KubernetesContainerDriver): website = 'https://container.googleapis.com' supports_clusters = True - AUTH_URL = "https://www.googleapis.com/auth/" + AUTH_URL = "https://www.googleapis.com/auth/cloudplatform" BACKEND_SERVICE_PROTOCOLS = ['HTTP', 'HTTPS', 'HTTP2', 'TCP', 'SSL'] @@ -156,6 +156,6 @@ class GKEContainerDriver(KubernetesContainerDriver): if zone is None: request = "/zones/clusters" # https://container.googleapis.com/v1/projects/{projectId}/zones/{zone}/clusters - print(self.website+self.base_path+request) - response = self.connection.request(self.base_path + request, method='GET').object + print(self.website+self.base_path) + response = self.connection.request(request, method='GET').object print(response)