bug 7209: check otherconfig before update

status 7209: resolved fixed
This commit is contained in:
anthony 2010-11-29 19:10:33 -08:00
parent a36b073e78
commit 79e68062af
1 changed files with 3 additions and 1 deletions

View File

@ -2192,7 +2192,9 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
if (!(guestOsTypeName.startsWith("Windows") || guestOsTypeName.startsWith("Citrix") || guestOsTypeName.startsWith("Other"))) {
if (cmd.getBootFromISO()) {
vm.setPVBootloader(conn, "eliloader");
vm.addToOtherConfig(conn, "install-repository", "cdrom");
Map<String, String> otherConfig = vm.getOtherConfig(conn);
otherConfig.put( "install-repository", "cdrom");
vm.setOtherConfig(conn, otherConfig);
} else {
vm.setPVBootloader(conn, "pygrub");
}