1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

Fix for VMware restore to cope with new location of deployment files (/vms/)

This commit is contained in:
Tino Vazquez 2012-10-31 12:22:28 +01:00
parent dea2b088a9
commit 0c8e01b7aa

View File

@ -180,7 +180,7 @@ class VMwareDriver
# ------------------------------------------------------------------------ #
def restore(checkpoint)
begin
vm_folder=VAR_LOCATION + "/" + File.basename(File.dirname(checkpoint))
vm_folder=VAR_LOCATION + "/vms/" + File.basename(File.dirname(checkpoint))
dfile=`ls -1 #{vm_folder}/deployment*|tail -1`
dfile.strip!
rescue => e