Skip to content

Commit 818302e

Browse files
committed
fail on incorrect endpoint
1 parent a3d8abd commit 818302e

File tree

1 file changed

+1
-0
lines changed
  • pkg/gce-cloud-provider/compute

1 file changed

+1
-0
lines changed

pkg/gce-cloud-provider/compute/gce.go

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ func getComputeVersion(ctx context.Context, tokenSource oauth2.TokenSource, comp
231231
_, err = url.ParseRequestURI(endpoint)
232232
if err != nil {
233233
klog.Fatalf("Error parsing compute endpoint %s", endpoint)
234+
return nil, err
234235
}
235236
computeOpts = append(computeOpts, option.WithEndpoint(endpoint))
236237
}

0 commit comments

Comments
 (0)