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
netbox_device_interface error using 'mode'. #158
Comments
@ThomasADavis I'm sorry, but what is the exact issue here? The choices are fetched dynamically for the two modules that we're support ( Is this a documentation issue? Sorry just not very clear as to where the issue is. |
They are not dynamic.
Hard coded values in the modules. When using netbox 2.7, that should be 'Tagged (All)', not 'Tagged All' All three modules have the same hard coded values. |
Great. Thank you for the specifics. I can get something put in tonight hopefully. |
Looks like it should just be commented out, not changed - netbox-2.8 is the flag day version for slugs. |
Did you mean to close this issue? And we can make a decision as to whether it should be commented out or not. I'd rather have a few choices (slug and not slug) that it will validate whether they provided the correct options, but having the API report back that it is an invalid option is also fine and prevents having the argument spec, but goes through all the logic, etc. before failing. |
Dang it. Hit the wrongbutton. |
I looked in other modules, the same code section was commented out, and appears to handled somewhere else. and it only affects netbox_vm_interface and netbox_device_interface. netbox_interfaces does no checking. |
Yeah the argument spec is newer. I think changing the type to raw and then I'll look at the back end code since I think those are available from the _choices API endpoint |
Looks good to me. |
ISSUE TYPE
SOFTWARE VERSIONS
Ansible:
[tdavis@mouse-r11 netbox]$ ansible --version
ansible 2.9.6
config file = /home/tdavis/netbox/ansible.cfg
configured module search path = ['/home/tdavis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/tdavis/.local/lib/python3.6/site-packages/ansible
executable location = /home/tdavis/.local/bin/ansible
python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]
Netbox:
v2.7.11
Collection:
github head installed.
SUMMARY
Tagged All vs. Tagged (All)
STEPS TO REPRODUCE
EXPECTED RESULTS
succeded.
ACTUAL RESULTS
Looking at the _choices API, it should be 'Tagged (All)', not 'Tagged All'. This affects netbox_vm_interface, netbox_device_interface, and netbox_interface.
The text was updated successfully, but these errors were encountered: