if (!doScript(_setPxeBootCommand)) {
return new StartAnswer(cmd, "Set boot device to PXE failed");
}
s_logger.debug("Set " + vm.getHostName() + " to PXE boot successfully");
} else {
execute(new IpmISetBootDevCommand(BootDev.disk));
}
OutputInterpreter.AllLinesParser interpreter = new OutputInterpreter.AllLinesParser();
if (!doScript(_getStatusCommand, interpreter)) {
return new StartAnswer(cmd, "Cannot get current power status of " + _name);