Skip to content

Commit

Permalink
fix: add back nicId (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos authored Aug 9, 2022
1 parent bfd17ff commit 833cf82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ionoscloud/resource_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ func resourceServer() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"size": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "The size of the volume in GB.",
},
"disk_type": {
Type: schema.TypeString,
Expand Down Expand Up @@ -1307,6 +1308,8 @@ func setResourceServerData(ctx context.Context, client *ionoscloud.APIClient, d
}
nicEntry := SetNetworkProperties(nic)

nicEntry["id"] = *nic.Id

var firewallId string
if primaryFirewallOk {
firewallId = d.Get("firewallrule_id").(string)
Expand Down

0 comments on commit 833cf82

Please sign in to comment.