Virt disk fixes - Fluorine backport #50379
Backport of PR #50356
What does this PR do?
This PR handles cdrom disks devices in the virt module. When updating VMs created outside of salt virt module we would hit problems since these devices can have no attached source.
What issues does this PR fix or reference?
Commits signed with GPG?
The text was updated successfully, but these errors were encountered:
While updating a domain, we need to ensure the disks are in the order defined by the user.
Ensure the disk target devices are unique within the disks in the new list before diffing them. Libvirt will reorder the disks based on their targets. If the users gives a disk order that is not consistent with the currently running VM, then it's his fault giving us wrong data.