From e346c5c0e8ee890428107413d716e660f261f0f7 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Wed, 11 Sep 2019 14:01:58 +0200 Subject: [PATCH] Add forgotten omitempty in DeviceFilter. --- netbox_devices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_devices.go b/netbox_devices.go index dcbc704..a2868f6 100644 --- a/netbox_devices.go +++ b/netbox_devices.go @@ -158,7 +158,7 @@ type DeviceFilter struct { Q string `schema:"q,omitempty"` ManufacturerId string `schema:"manufacturer_id,omitempty"` Manufacturer string `schema:"manufacturer,omitempty"` - DeviceTypeId string `schema:"device_type_id"` + DeviceTypeId string `schema:"device_type_id,omitempty"` RoleId string `schema:"role_id,omitempty"` Role string `schema:"role,omitempty"` RegionId string `schema:"region_id,omitempty"`