-
Notifications
You must be signed in to change notification settings - Fork 138
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
Unable to set vm_role for device_role #342
Comments
Hi, this is a common issue with optional attributes in the go-netbox library. In my fork, I usually just remove the |
I suppose there are good reasons for you to use your 'go-netbox' fork but don't you think it would be a more comfortable situation to use upstream 'go-netbox' library from 'netbox-community'? |
Theyre also not very responsive. E.g. I created a generalized version of this ticket here netbox-community/go-netbox#107 |
OK, this is clear, |
Hello,
For
netbox_device_role
resource if I try to changevm_role
fromfalse
totrue
... it works.If I try to change
vm_role
fromtrue
tofalse
it does not work. Terraform detects the difference and offers to change the value but nothing happens.After some investigations I found the PATCH request data miss the field when
vm_role
is set to false.Here is
mitmproxy
trace in case changingvm_role
fromfalse
totrue
.Here is
mitmproxy
trace in case changingvm_role
fromtrue
tofalse
.I searched in Go source code and did not find the problem. Perhaps it comes from Go Netbox library?
Any idea?
Terraform Version
v1.3.6
Step to reproduce
Use the following Terraform configuration:
The text was updated successfully, but these errors were encountered: