From c0b25dd347dff9dcef9ac4c676c4aef43010182c Mon Sep 17 00:00:00 2001 From: Utsav Anand Date: Tue, 3 Dec 2019 11:53:34 +0530 Subject: [PATCH] Fix hardcoded value of zone for GCE Signed-off-by: Utsav Anand --- pkg/provision/gce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provision/gce.go b/pkg/provision/gce.go index fa1296cf..718c3e3d 100644 --- a/pkg/provision/gce.go +++ b/pkg/provision/gce.go @@ -32,7 +32,7 @@ func (gce *GCEProvisioner) Provision(host BasicHost) (*ProvisionedHost, error) { Description: "Exit node created by inlets-operator", MachineType: fmt.Sprintf("zones/%s/machineTypes/%s", host.Additional["zone"], host.Plan), CanIpForward: true, - Zone: fmt.Sprintf("projects/%s/zones/us-central1-a", host.Additional["projectid"]), + Zone: fmt.Sprintf("projects/%s/zones/%s", host.Additional["projectid"], host.Additional["zone"]), Disks: []*compute.AttachedDisk{ { AutoDelete: true,