Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible custom_fileds with non-String types #665

Open
bonjonson opened this issue Dec 16, 2024 · 0 comments
Open

Compatible custom_fileds with non-String types #665

bonjonson opened this issue Dec 16, 2024 · 0 comments

Comments

@bonjonson
Copy link

Issue Reporting Guide

Hi there,I encountered a problem in the Data Source 'netboxdevices': the provider expects that devices.customfields is a Map of Strings, which is causing me an error with the custom field 'example' of type bool, as a boolean value is expected there."

Terraform Version

Terraform v1.9.5

Affected Resource(s)

netbox_devices (Data Source)

Terraform Configuration Files

data "netbox_devices" "example" {
  filter {
    name  = "name"
    value = "example"
  }
}

Panic Output

╷
│ Error: devices.0.custom_fields.Maintenance: '' expected type 'string', got unconvertible type 'bool', value: 'false'
│ 
│   with data.netbox_devices.example,
│   on main.tf line 15, in data "netbox_devices" "example":
│   15: data "netbox_devices" "example" {
│ 

Expected Behavior

data source netbox_devices run completely.

Actual Behavior

What actually happened?

Steps to Reproduce

Create custom field with type "bool" and try add object with data source "netbox_devices"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant