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

Commit

Permalink
remote_ip_prefix read fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
0ndi committed May 5, 2021
1 parent 203a554 commit 21064ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcore/data_source_gcore_securitygroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ func dataSourceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m
r["description"] = *sgr.Description
}

r["remote_ip_prefix"] = ""
if sgr.RemoteIPPrefix != nil {
r["remote_ip_prefix"] = *sgr.RemoteIPPrefix
}

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

Expand Down
1 change: 1 addition & 0 deletions gcore/resource_gcore_securitygroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func resourceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m in
r["description"] = *sgr.Description
}

r["remote_ip_prefix"] = ""
if sgr.RemoteIPPrefix != nil {
r["remote_ip_prefix"] = *sgr.RemoteIPPrefix
}
Expand Down

0 comments on commit 21064ae

Please sign in to comment.