> + logger.debug("Cannot determine os version for item: %s",
> operatingSystem);
> + }
> + if (bits == null) {
> + logger.debug("Cannot determine os bits for item: %s",
> operatingSystem);
> + }
> +
> + org.jclouds.compute.domain.OperatingSystem os =
> org.jclouds.compute.domain.OperatingSystem.builder()
> + .description(optLongDescription.isPresent() ?
> optLongDescription.get() : UNRECOGNIZED)
> + .family(osFamily)
> + .version(osVersion)
> + .is64Bit(Objects.equal(bits, 64))
> + .build();
> +
> + return new ImageBuilder()
> + .ids(operatingSystem.getId())
> + .description(optOSReferenceCode.isPresent() ?
> optOSReferenceCode.get() : UNRECOGNIZED)
Use just `optOSReferenceCode.or(UNRECOGNIZED)`.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/296/files#r12882111