Skip to content

Commit

Permalink
network: outputting the subnet name when the name is not `GatewaySu…
Browse files Browse the repository at this point in the history
…bnet`
  • Loading branch information
tombuildsstuff committed Apr 2, 2024
1 parent 2bbe042 commit b5384c6
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 b5384c6

Please sign in to comment.