> + return OsFamily.UBUNTU;
> + else if (label.toUpperCase().contains("WINDOWS"))
> + return OsFamily.WINDOWS;
> + else if (label.toUpperCase().contains("ORACLE LINUX"))
> + return OsFamily.OEL;
> + }
> + return OsFamily.UNRECOGNIZED;
> + }
> + };
> + }
> +
> + public static Function<String, String> version() {
> + return new Function<String, String>() {
> + @Override
> + public String apply(final String label) {
> + if (label != null) {
Same about the conditional. Remove it and add a proper null precondition check.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/117/files#r22192119