Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F33AC200CD5 for ; Thu, 22 Jun 2017 05:11:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1DEB160BD5; Thu, 22 Jun 2017 03:11:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1D85A160BF0 for ; Thu, 22 Jun 2017 05:11:12 +0200 (CEST) Received: (qmail 63113 invoked by uid 500); 22 Jun 2017 03:11:12 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 62483 invoked by uid 500); 22 Jun 2017 03:11:10 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 62457 invoked by uid 99); 22 Jun 2017 03:11:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 03:11:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C171DE93E1; Thu, 22 Jun 2017 03:11:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anthonyshaw@apache.org To: commits@libcloud.apache.org Date: Thu, 22 Jun 2017 03:11:13 -0000 Message-Id: <63e06fd691a845c9aa4033429de7dd15@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [09/34] libcloud git commit: update archived-at: Thu, 22 Jun 2017 03:11:14 -0000 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 Authored: Tue Jun 13 21:04:39 2017 -0400 Committer: andy 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