1
0
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:
Tino Vazquez 2012-10-04 17:12:58 +02:00
parent f7b77ed139
commit f396521e31

View File

@ -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)