From 6ffbac43d7fea9b47ce2da62841a66b37719d5f3 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Thu, 16 Jul 2015 18:39:25 +0200 Subject: [PATCH] Fixing the build... The v0.beta is removed, so I also removed it from here. Strangely enough I cannot find any code that actually used it other then in being instantiated in the provider config func. --- config.go | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/config.go b/config.go index 905e56d4..8803868f 100644 --- a/config.go +++ b/config.go @@ -13,7 +13,6 @@ import ( "golang.org/x/oauth2" "golang.org/x/oauth2/google" "golang.org/x/oauth2/jwt" - computeBeta "google.golang.org/api/compute/v0.beta" "google.golang.org/api/compute/v1" "google.golang.org/api/container/v1" "google.golang.org/api/dns/v1" @@ -27,11 +26,10 @@ type Config struct { Project string Region string - clientCompute *compute.Service - clientComputeBeta *computeBeta.Service - clientContainer *container.Service - clientDns *dns.Service - clientStorage *storage.Service + clientCompute *compute.Service + clientContainer *container.Service + clientDns *dns.Service + clientStorage *storage.Service } func (c *Config) loadAndValidate() error { @@ -115,13 +113,6 @@ func (c *Config) loadAndValidate() error { } c.clientCompute.UserAgent = userAgent - log.Printf("[INFO] Instantiating Beta GCE client...") - c.clientComputeBeta, err = computeBeta.New(client) - if err != nil { - return err - } - c.clientComputeBeta.UserAgent = userAgent - log.Printf("[INFO] Instantiating GKE client...") c.clientContainer, err = container.New(client) if err != nil {