Skip to content

Commit

Permalink
fix empty string on DAP
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo committed Dec 16, 2024
1 parent 0dfd806 commit ca1959b
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 ca1959b

Please sign in to comment.