nios_fixed_address not able to add options that don't require use_options #64034
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
infoblox
Infoblox NIOS
module
This issue/PR relates to a module.
net_tools
Net-tools category
networking
Network category
support:certified
This issue/PR relates to certified code.
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
It is not possible to add options that don't require use_options e.g. host-name
ISSUE TYPE
COMPONENT NAME
net_tools, nios, lib/ansible/modules/net_tools/nios/nios_fixed_address.py
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04 with Ansible 2.8.6 from Ansible PPA (2.8.6-1ppa~bionic)
pip freeze|grep -i infoblox
infoblox-client==0.4.23
STEPS TO REPRODUCE
EXPECTED RESULTS
The host-name option should be set in the infoblox appliance for the specific fixed address.
ACTUAL RESULTS
Ansible terminates with the error below.
It is impossible to use any option that has no use_option. The source code has no special treatment for those occasions. "use_options" defaults always to "True". See line 221 in lib/ansible/modules/net_tools/nios/nios_fixed_address.py
The same error happens when any use_option is used. I tried "yes", "no", "true", "false". It's also not possible to use equivalent "num: 12" instead of "name: host-name".
The text was updated successfully, but these errors were encountered: