Closed guidugli closed 3 years ago
Could this just be because of the following line in virt_net.py
?
Happy to PR a change for this. I'm assuming the name attribute should be required for a majority of commands -- but perhaps just not these. So maybe we could do something like default the value to ""
and then catch for that elsewhere?
SUMMARY
Both examples using list_nets and facts return with error: missing required arguments: name Specifying a name makes the example work, but these commands become quite useless.
Seems to be something simple to fix but I am not familiar with Ansible development. I believe the problem is related to line 605 of virt_net.py, but not sure.
ISSUE TYPE
COMPONENT NAME
community.libvirt.virt_net
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Fedora release 31
STEPS TO REPRODUCE
EXPECTED RESULTS
Expecting receiving information of all libvirt networks.
ACTUAL RESULTS
These commands are requiring name argument.