Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 5aed376

Browse files
Alexandr Sokolovalexk53
authored andcommitted
double apply fixed for security_group.remote_ip_prefix
1 parent c2e7596 commit 5aed376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcore/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func secGroupUniqueID(i interface{}) int {
588588
io.WriteString(h, strconv.Itoa(e["port_range_min"].(int)))
589589
io.WriteString(h, strconv.Itoa(e["port_range_max"].(int)))
590590
io.WriteString(h, e["description"].(string))
591-
io.WriteString(h, e["remote_ip_prefix"].(string))
591+
io.WriteString(h, strings.TrimSuffix(e["remote_ip_prefix"].(string), "/32"))
592592

593593
return int(binary.BigEndian.Uint64(h.Sum(nil)))
594594
}

0 commit comments

Comments
 (0)