Open jhofmueller opened 6 months ago
I believe we have merged code that fixes this, but we have not cut a new release yet.
Hello, we are seeing the same behavior. Initial run works but seems to ignore ui_visibility value and just sets the default for the object. Subsequent runs fail and display the following error.
failed: [localhost] (item={'name': 'SiteID', 'description': 'Defines the site ID', 'content_types': ['dcim.site'], 'type': 'integer', 'ui_visibility': 'read-only', 'ui_editable': False, 'required': True}) => changed=false ansible_loop_var: item item: content_types:
This seems to be possibly a duplicate of #1135. Unfortunately I have had to put the associated PR on hold since pynetbox
has not seen updates in half a year and we are re-evaluating the use of NetBox vs. a fork.
Hi, curious if this fix is back on the roadmap now that pynetbox has a new release?
Ansible NetBox Collection version
v3.17.0
Ansible version
NetBox version
v3.7.5
Python version
3.11
Steps to Reproduce
Run this playbook twice:
The first run works as expected, creating the custom variable.
The second run however fails:
Expected Behavior
I expected either an unchanged message or a change message in case something was changed.
Observed Behavior
ui_visibility does not exist on existing object