Skip to content

Commit 7f3ed13

Browse files
committed
fail on incorrect endpoint
1 parent eb4e5e5 commit 7f3ed13

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
@@ -229,6 +229,7 @@ func getComputeVersion(ctx context.Context, tokenSource oauth2.TokenSource, comp
229229
_, err = url.ParseRequestURI(endpoint)
230230
if err != nil {
231231
klog.Fatalf("Error parsing compute endpoint %s", endpoint)
232+
return nil, err
232233
}
233234
computeOpts = append(computeOpts, option.WithEndpoint(endpoint))
234235
}

0 commit comments

Comments
 (0)