mirror of https://github.com/apache/cloudstack.git
bug 7209: check otherconfig before update
status 7209: resolved fixed
This commit is contained in:
parent
b482b1c797
commit
5584177dbb
|
|
@ -810,7 +810,9 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
if (!(guestOsTypeName.startsWith("Windows") || guestOsTypeName.startsWith("Citrix") || guestOsTypeName.startsWith("Other"))) {
|
||||
if (vmSpec.getBootloader() == BootloaderType.CD) {
|
||||
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 if (vmSpec.getBootloader() == BootloaderType.PyGrub ){
|
||||
vm.setPVBootloader(conn, "pygrub");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue