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

Commit 21064ae

Browse files
committed
remote_ip_prefix read fixed
1 parent 203a554 commit 21064ae

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

gcore/data_source_gcore_securitygroup.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ func dataSourceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m
181181
r["description"] = *sgr.Description
182182
}
183183

184+
r["remote_ip_prefix"] = ""
185+
if sgr.RemoteIPPrefix != nil {
186+
r["remote_ip_prefix"] = *sgr.RemoteIPPrefix
187+
}
188+
184189
r["updated_at"] = sgr.UpdatedAt.String()
185190
r["created_at"] = sgr.CreatedAt.String()
186191

gcore/resource_gcore_securitygroup.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ func resourceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m in
284284
r["description"] = *sgr.Description
285285
}
286286

287+
r["remote_ip_prefix"] = ""
287288
if sgr.RemoteIPPrefix != nil {
288289
r["remote_ip_prefix"] = *sgr.RemoteIPPrefix
289290
}

0 commit comments

Comments
 (0)