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

Commit ca2867f

Browse files
committed
gcore_securitygroup read method fixed
1 parent e67fcbf commit ca2867f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcore/resource_gcore_securitygroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func resourceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m in
294294

295295
r["remote_ip_prefix"] = ""
296296
if sgr.RemoteIPPrefix != nil {
297-
r["remote_ip_prefix"] = *sgr.RemoteIPPrefix
297+
r["remote_ip_prefix"] = strings.TrimSuffix(*sgr.RemoteIPPrefix, "/32")
298298
}
299299

300300
r["updated_at"] = sgr.UpdatedAt.String()

0 commit comments

Comments
 (0)