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

This commit is contained in:
Tino Vazquez committed 2012-10-31 12:22:28 +01:00
1 parent dea2b088a9
commit 0c8e01b7aa
1 file changed
+1 -1
+1 -1
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