Skip to content

Commit

Permalink
removed ineffectual assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
STANIAC authored and fbreckle committed Sep 23, 2024
1 parent 0e49b77 commit 700b690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/resource_netbox_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func resourceNetboxServiceCreate(d *schema.ResourceData, m interface{}) error {
data.VirtualMachine = &dataVirtualMachineID
}

v, ok := d.GetOk("tags")
v := d.Get("tags")
tags, _ := getNestedTagListFromResourceDataSet(api, v)
data.Tags = tags

Expand Down Expand Up @@ -220,7 +220,7 @@ func resourceNetboxServiceUpdate(d *schema.ResourceData, m interface{}) error {

data.Ipaddresses = []int64{}

v, ok := d.GetOk("tags")
v := d.Get("tags")
tags, _ := getNestedTagListFromResourceDataSet(api, v)
data.Tags = tags

Expand Down

0 comments on commit 700b690

Please sign in to comment.