> +         case WINDOWS:
> +            return OperatingSystem.builder()
> +                    .description(OsFamily.WINDOWS.value())
> +                    .family(OsFamily.WINDOWS)
> +                    .build();
> +         case LINUX:
> +            return OperatingSystem.builder()
> +                    .description(OsFamily.LINUX.value())
> +                    .family(OsFamily.LINUX)
> +                    .build();
> +         default:
> +            return OperatingSystem.builder()
> +                    .description(OsFamily.UNRECOGNIZED.value())
> +                    .family(OsFamily.UNRECOGNIZED)
> +                    .build();
> +      }

Refactor it to a reusable function so the image one can also use it?

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

Reply via email to