Closed sean-m-sullivan closed 4 months ago
adding note, that I added it as a module option in the following, to fix it. in the docs https://github.com/ansible-collections/cisco.ios/blob/main/plugins/modules/ios_facts.py#L54 and a true bool here https://github.com/ansible-collections/cisco.ios/blob/4aed700528dae145e7a7bbe7545c4721f5cc0b3e/plugins/module_utils/network/ios/argspec/facts/facts.py#L25
though this seems like a bad idea in terms of an additional module option. Think the logic around where its failing should likely change.
SUMMARY
when running the following playbook an error occurs
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_facts:
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
it to returned gathered facts.
ACTUAL RESULTS
It errors expecting a configuration paraemter
Thoughts
It was found that adding configuration: false, to the module options for the facts module, fixed this issue, but I do not believe this is the correct answer for fixing the code.
this is the root of the error https://github.com/ansible-collections/cisco.ios/blob/4aed700528dae145e7a7bbe7545c4721f5cc0b3e/plugins/module_utils/network/ios/facts/vlans/vlans.py#L68
configuration is never set as a param in that module.