Skip to content

vm_role attribute is being incorrectly changed to false during Terraform plan #820

@R-Calcarao

Description

@R-Calcarao

Hello,
I’m experiencing an issue with the netbox_device_role resource.
In NetBox, some of my Device Roles are explicitly configured with vm_role as default (true). However, whenever I run terraform plan, the provider incorrectly proposes to change these roles to vm_role = false, even though:

My Terraform configuration explicitly sets vm_role as true
I do not change this attribute anywhere in variables or modules

This results in constant and incorrect diffs during every plan/apply cycle.
Provider version: e-breuninger/netbox vX.Y.Z
(I can confirm this behavior occurs in v5.0.1, and reverting to v5.0.0 prevents other crashes but the vm_role issue persists.)

Example:.
~ vm_role = true -> false

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions