CLOUDSTACK-3869: change default snapshot directory to VM folder

This commit is contained in:
Kelven Yang 2013-08-07 16:46:36 -07:00
parent 6951e77ed9
commit faf9640983
1 changed files with 0 additions and 12 deletions

View File

@ -1201,18 +1201,6 @@ public class HypervisorHostHelper {
Thread.sleep(1000);
}
if(snapshotDirToParent) {
String snapshotDir = String.format("/vmfs/volumes/%s/", dsMo.getName());
s_logger.info("Switch snapshot working directory to " + snapshotDir + " for " + vmInternalCSName);
vmMo.setSnapshotDirectory(snapshotDir);
// Don't have a good way to test if the VM is really ready for use through normal API after configuration file manipulation,
// delay 3 seconds
Thread.sleep(3000);
}
s_logger.info("Blank VM: " + vmInternalCSName + " is ready for use");
return true;
}
return false;