1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-15 20:37:43 +00:00

[PR #12215/4d72ec32 backport][stable-13] xenserver_guest_info: use fallback chain for VDI format detection (#12230)

xenserver_guest_info: use fallback chain for VDI format detection (#12215)

* xenserver_guest_info: use fallback chain for VDI format detection

* changelog: add PR URL to
  changelog fragment

* test: set mismatched vdi_type in vm-3 fixture to test fallback chain precedence

Set vdi_type to "vhd" while image-format remains "qcow2" so the unit
test verifies that image-format takes precedence in the fallback chain.



---------


(cherry picked from commit 4d72ec3299)

Co-authored-by: Shreyash <shrbhosa@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
patchback[bot] 2026-06-12 23:46:27 +02:00 committed by GitHub
parent f5acbe2fef
commit cdab3ee401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 22 additions and 6 deletions

View file

@ -406,7 +406,9 @@ instance:
"size": 42949672960,
"sr": "Local storage",
"sr_uuid": "0af1245e-bdb0-ba33-1446-57a962ec4075",
"vbd_userdevice": "0"
"uuid": "3f98b388-b2c0-4355-9a01-15c0e61b5a76",
"vbd_userdevice": "0",
"vdi_type": "vhd"
},
{
"name": "testvm_11-1",
@ -415,7 +417,9 @@ instance:
"size": 42949672960,
"sr": "Local storage",
"sr_uuid": "0af1245e-bdb0-ba33-1446-57a962ec4075",
"vbd_userdevice": "1"
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"vbd_userdevice": "1",
"vdi_type": "vhd"
}
],
"domid": "56",

View file

@ -103,7 +103,9 @@ instance:
"size": 42949672960,
"sr": "Local storage",
"sr_uuid": "0af1245e-bdb0-ba33-1446-57a962ec4075",
"vbd_userdevice": "0"
"uuid": "3f98b388-b2c0-4355-9a01-15c0e61b5a76",
"vbd_userdevice": "0",
"vdi_type": "vhd"
},
{
"name": "windows-template-testing-1",
@ -112,7 +114,9 @@ instance:
"size": 42949672960,
"sr": "Local storage",
"sr_uuid": "0af1245e-bdb0-ba33-1446-57a962ec4075",
"vbd_userdevice": "1"
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"vbd_userdevice": "1",
"vdi_type": "vhd"
}
],
"domid": "56",