mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-15 04:17:41 +00:00
xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12119)
* xenserver_guest_info: add VDI uuid and vdi_type to disk info Add uuid and vdi_type (VHD/QCOW2) fields to the disk information returned by xenserver_guest_info module. Fixes #11998 * changelog: add PR URL to changelog fragment * xenserver_guest_info: add uuid and vdi_type to RETURN example output
This commit is contained in:
parent
d749cf7c85
commit
9208cbfd43
7 changed files with 24 additions and 7 deletions
|
|
@ -454,7 +454,9 @@ def gather_vm_facts(module: AnsibleModule, vm_params):
|
|||
"sr": vm_disk_sr_params["name_label"],
|
||||
"sr_uuid": vm_disk_sr_params["uuid"],
|
||||
"os_device": vm_vbd_params["device"],
|
||||
"uuid": vm_vbd_params["VDI"]["uuid"],
|
||||
"vbd_userdevice": vm_vbd_params["userdevice"],
|
||||
"vdi_type": vm_vbd_params["VDI"].get("sm_config", {}).get("vdi_type", ""),
|
||||
}
|
||||
|
||||
vm_facts["disks"].append(vm_disk_params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue