Skip to content

Commit

Permalink
Merge pull request #25484 from hashicorp/b/gateway-subnet-name-valida…
Browse files Browse the repository at this point in the history
…tion

`network`: outputting the subnet name when the name is not `GatewaySubnet`
  • Loading branch information
tombuildsstuff authored Apr 3, 2024
2 parents 1fb99b0 + b5384c6 commit 80bb037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/network/validate/gateway_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func IsGatewaySubnet(i interface{}, k string) (warnings []string, errors []error
}

if !strings.EqualFold(id.SubnetName, "GatewaySubnet") {
errors = append(errors, fmt.Errorf("expected %s to reference a gateway subnet with name GatewaySubnet", k))
errors = append(errors, fmt.Errorf("expected %s to reference a gateway subnet with name GatewaySubnet but got %q", k, id.SubnetName))
}

return warnings, errors
Expand Down

0 comments on commit 80bb037

Please sign in to comment.