e-breuninger/terraform-provider-netbox

data source netbox_ip_addresses throws error with bool type custom_fields

pidreher opened this issue · 2 comments

Hi,

when trying to get ip addresses I get this error:
Error: ip_addresses.0.custom_fields.dnserror: '' expected type 'string', got unconvertible type 'bool', value: 'false'

I got at least one custom field with bool type.
Seems like either the return from the api needs to be explicitly converted into a map of strings or it needs to accept other data types as well.

mapping["custom_fields"] = v.CustomFields

provider version: 3.8.5
netbox version: v3.7.7

should've searched the issues I guess:
#416
#409

closing as duplicate, also I'm dumb and already commented on this last year: #443 (comment)

sorry