Skip to content

Instantly share code, notes, and snippets.

@ravening
Last active June 29, 2020 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravening/aca1b27cf9719f8b753572a943e36cd6 to your computer and use it in GitHub Desktop.
Save ravening/aca1b27cf9719f8b753572a943e36cd6 to your computer and use it in GitHub Desktop.
VmLiveMIgration
UserVmDetailVO userVmDetailVO = _UserVmDetailsDao.findDetail(vm.getId(), ApiConstants.BootType.UEFI.toString());
if (userVmDetailVO != null) {
s_logger.info(" Live Migration of UEFI enabled VM : " + vm.getInstanceName() + " is not supported");
if ("legacy".equalsIgnoreCase(userVmDetailVO.getValue()) || "secure".equalsIgnoreCase(userVmDetailVO.getValue())) {
// Return empty list.
return new Ternary<Pair<List<? extends Host>, Integer>, List<? extends Host>, Map<Host, Boolean>>(new Pair<List<? extends Host>,
Integer>(new ArrayList<HostVO>(), new Integer(0)), new ArrayList<Host>(), new HashMap<Host, Boolean>());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment