virt module get_xml command should support flags #70852
Labels
affects_2.11
cloud
collection:community.libvirt
collection
Related to Ansible Collections work
module
This issue/PR relates to a module.
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
needs_info
This issue requires further information. Please answer any outstanding questions.
needs_template
This issue/PR has an incomplete description. Please fill in the proposed template correctly.
support:community
This issue/PR relates to code supported by the Ansible community.
virt
Virt community (incl. QEMU, KVM, libvirt, ovirt, RHV and Proxmox)
SUMMARY
libvirt XMLDesc(flags)
The flag is important, some time we want to haveVIR_DOMAIN_XML_SECURE
to get sensitive info. In most cases we want to useVIR_DOMAIN_XML_INACTIVE
for running VMs, in some cases we want to get the live state. So far the module use flag=0 which is live one without sensitive data. We need to give an additional flag parameter for this.ISSUE TYPE
COMPONENT NAME
virt
ADDITIONAL INFORMATION
virt: command=get_xml flags=[...]
For example, if we want inactive state with sensitive info:
The text was updated successfully, but these errors were encountered: