F #-: Force change-media on migrations (#4073)

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
This commit is contained in:
Guillermo Ramos authored and GitHub committed 2026-02-23 16:50:12 +01:00
1 parent cd00a4c87c
commit 4eae08c87b
1 file changed
+1 -1
+1 -1
View File
@@ -354,7 +354,7 @@ module VirtualMachineManagerKVM
rodisks.each do |(dev, path)|
new_path = dst_dir + path.relative_path_from(src_dir)
cmd = "change-media #{@domain} #{dev} #{new_path} --update"
cmd = "change-media #{@domain} #{dev} #{new_path} --update --force"
rc, out, err = virsh_retry(cmd, 'active block job', virsh_tries)
return [rc, out, err] if rc != 0