mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #2754 from svanharmelen/b-google
provider/google: fixing the build...
This commit is contained in:
commit
c8b4d3d18a
@ -13,7 +13,6 @@ import (
|
|||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
"golang.org/x/oauth2/google"
|
"golang.org/x/oauth2/google"
|
||||||
"golang.org/x/oauth2/jwt"
|
"golang.org/x/oauth2/jwt"
|
||||||
computeBeta "google.golang.org/api/compute/v0.beta"
|
|
||||||
"google.golang.org/api/compute/v1"
|
"google.golang.org/api/compute/v1"
|
||||||
"google.golang.org/api/container/v1"
|
"google.golang.org/api/container/v1"
|
||||||
"google.golang.org/api/dns/v1"
|
"google.golang.org/api/dns/v1"
|
||||||
@ -27,11 +26,10 @@ type Config struct {
|
|||||||
Project string
|
Project string
|
||||||
Region string
|
Region string
|
||||||
|
|
||||||
clientCompute *compute.Service
|
clientCompute *compute.Service
|
||||||
clientComputeBeta *computeBeta.Service
|
clientContainer *container.Service
|
||||||
clientContainer *container.Service
|
clientDns *dns.Service
|
||||||
clientDns *dns.Service
|
clientStorage *storage.Service
|
||||||
clientStorage *storage.Service
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) loadAndValidate() error {
|
func (c *Config) loadAndValidate() error {
|
||||||
@ -115,13 +113,6 @@ func (c *Config) loadAndValidate() error {
|
|||||||
}
|
}
|
||||||
c.clientCompute.UserAgent = userAgent
|
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...")
|
log.Printf("[INFO] Instantiating GKE client...")
|
||||||
c.clientContainer, err = container.New(client)
|
c.clientContainer, err = container.New(client)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user