mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-04 17:47:00 +03:00
Fix wrong path calculation for deployment file in restore action for VMware
This commit is contained in:
parent
f7b77ed139
commit
f396521e31
@ -181,10 +181,7 @@ class VMwareDriver
|
||||
def restore(checkpoint)
|
||||
begin
|
||||
vm_folder=VAR_LOCATION + "/" + File.basename(File.dirname(checkpoint))
|
||||
last_deployment_file=`ls -1 #{vm_folder}/deployment*|tail -1`
|
||||
|
||||
# Define the VM
|
||||
dfile = vm_folder + "/" + last_deployment_file
|
||||
dfile=`ls -1 #{vm_folder}/deployment*|tail -1`
|
||||
rescue => e
|
||||
OpenNebula.log_error("Cannot open checkpoint #{e.message}")
|
||||
exit(-1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user