mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-12 08:58:17 +03:00
B #-: Fix live migrate symlink restore (#3024)
otherwise disk.0 symlink looks like `disk.0 -> disk.0.snap` instead e.g. `disk.0 -> disk.0.snap/2`
This commit is contained in:
parent
a9cb27d9f9
commit
87862523e2
@ -174,7 +174,7 @@ def local_migration(kvm_vm)
|
||||
if File.symlink? path
|
||||
target = File.readlink(path)
|
||||
lname = path
|
||||
elsif (m = path.match(%r{(disk.([0-9]*).snap)/.*})) # replica
|
||||
elsif (m = path.match(%r{(disk.([0-9]*).snap/.*)}))
|
||||
target = m[1]
|
||||
lname = "disk.#{m[2]}"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user