Fix netbox 2.9 api changes
Status is no longer returning int but string
This commit is contained in:
parent
5ec76803a5
commit
19e0e8f21d
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ type IpamVLANsList struct {
|
|||
} `json:"tenant"`
|
||||
Status struct {
|
||||
Label string `json:"label"`
|
||||
Value int `json:"value"`
|
||||
Value string `json:"value"`
|
||||
} `json:"status"`
|
||||
Role struct {
|
||||
ID int `json:"id"`
|
||||
|
@ -152,7 +152,7 @@ type VLANFilter struct {
|
|||
|
||||
// ListVLANs returns Netbox ipam_vlans_list
|
||||
func (n *NetBox) ListVLANs(i *IpamVLANsList, f *VLANFilter) error {
|
||||
var encoder = schema.NewEncoder()
|
||||
encoder := schema.NewEncoder()
|
||||
|
||||
form := url.Values{}
|
||||
err := encoder.Encode(f, form)
|
||||
|
|
Loading…
Reference in a new issue