Replies: 2 comments 4 replies
-
The If it's necessary for the Ansible module to interact with these fields, it will need to be updated to function with all the available choices. |
Beta Was this translation helpful? Give feedback.
-
I mean if it is acceptable for the Ansible module project to force users to quote values for one certain module parameter. Thanks for your help. I don't think there's any more to say and I will close this discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This might sound like a ridiculous request. While the new
ui_editable
CustomField attribute is nice but it does not work with the NetBox Ansible module.Ansible modules are ran through a CI pipeline that cannot work with values
yes
andno
because they are treated as boolean and required to betrue
andfalse
instead.AFAIK this test is part of ansible-test and is not a part of NetBox Ansible module. Getting this changed in ansible-test is most likely not possible since they want to make sure everyone uses
true
/false
instead ofyes
/no
.I wonder if it would be possible to re-think how
ui_editable
works and perhaps not use "yes" and "no" as values.Otherwise the Ansible module is forced to present 2 boolean parameters to the user: one for whether the field is editable and second for whether it is hidden while editing.
I'd also hope that this raises awareness of the issue so that such a situation might be avoided in the future.
Beta Was this translation helpful? Give feedback.
All reactions