Skip to content

Commit

Permalink
fix: Data netbox_ipam_vlan return code 400
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Jun 28, 2020
1 parent 613edaa commit 55d1e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/data_netbox_ipam_vlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func dataNetboxIpamVlanRead(d *schema.ResourceData, m interface{}) error {
groupIDStr := strconv.FormatInt(groupID, 10)

p := ipam.NewIpamVlansListParams().WithVid(&idStr)
if id != 0 {
if groupID != 0 {
p.SetGroupID(&groupIDStr)
}

Expand Down

0 comments on commit 55d1e0b

Please sign in to comment.