Skip to content

Commit

Permalink
fix empty string on DAP (#7854)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo authored Dec 26, 2024
1 parent ad5fe6c commit db2030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/securitygroup/securityrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func ListSourcePrefixes(r *armnetwork.SecurityRule) []string {

func ListDestinationPrefixes(r *armnetwork.SecurityRule) []string {
var rv []string
if r.Properties.DestinationAddressPrefix != nil {
if r.Properties.DestinationAddressPrefix != nil && *r.Properties.DestinationAddressPrefix != "" {
rv = append(rv, *r.Properties.DestinationAddressPrefix)
}
if r.Properties.DestinationAddressPrefixes != nil {
Expand Down

0 comments on commit db2030d

Please sign in to comment.