Skip to content

Commit 082b6a8

Browse files
zarvdkon-angelo
andauthored
fix empty string on DAP (#7854) (#8640)
Co-authored-by: Konstantinos Angelopoulos <[email protected]>
1 parent 98db0db commit 082b6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/provider/loadbalancer/securitygroup/securityrule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func ListSourcePrefixes(r *network.SecurityRule) []string {
9999

100100
func ListDestinationPrefixes(r *network.SecurityRule) []string {
101101
var rv []string
102-
if r.DestinationAddressPrefix != nil {
102+
if r.DestinationAddressPrefix != nil && *r.DestinationAddressPrefix != "" {
103103
rv = append(rv, *r.DestinationAddressPrefix)
104104
}
105105
if r.DestinationAddressPrefixes != nil {

0 commit comments

Comments
 (0)