1
0
Fork 0
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:
Shreyash 2026-05-30 23:13:30 +05:30 committed by GitHub
parent d749cf7c85
commit 9208cbfd43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 24 additions and 7 deletions

View file

@ -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)