Skip to content

Commit

Permalink
fix: use correct workspace for online validation
Browse files Browse the repository at this point in the history
  • Loading branch information
GGabriele committed Mar 13, 2024
1 parent dea9a3a commit a7afdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gateway_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ this command unless --online flag is used.

func validateWithKong(ctx context.Context, kongClient *kong.Client, ks *state.KongState) []error {
// make sure we are able to connect to Kong
kongVersion, err := fetchKongVersion(ctx, rootConfig)
kongVersion, err := fetchKongVersion(ctx, rootConfig.ForWorkspace(validateWorkspace))
if err != nil {
return []error{fmt.Errorf("couldn't fetch Kong version: %w", err)}
}
Expand Down

0 comments on commit a7afdd5

Please sign in to comment.