if iso is installed, don't include it into ssvm

This commit is contained in:
Edison Su 2011-06-17 11:18:48 -04:00
parent 614400f1e3
commit 0a8421fe66
1 changed files with 5 additions and 4 deletions

View File

@ -2256,10 +2256,11 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
}
if (vmSpec.getType() != VirtualMachine.Type.User) {
DiskDef iso = new DiskDef();
if (_sysvmISOPath != null)
iso.defISODisk(_sysvmISOPath);
vm.getDevices().addDevice(iso);
if (_sysvmISOPath != null) {
DiskDef iso = new DiskDef();
iso.defISODisk(_sysvmISOPath);
vm.getDevices().addDevice(iso);
}
createPatchVbd(conn, vmName, vm, vmSpec);
}