> +      }
> +      if(optVersion.isPresent()) {
> +         osVersion = OperatingSystems.version().apply(optVersion.get());
> +      }
> +      if (osFamily == OsFamily.UNRECOGNIZED) {
> +         logger.debug("Cannot determine os family for item: %s", 
> operatingSystem);
> +      }
> +      if (osVersion == null) {
> +         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)

Use just `optLongDescription.or(UNRECOGNIZED)`.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/296/files#r12882103

Reply via email to