> +         return null;
> +      }
> +   }
> +
> +   public static Function<OSImage, OperatingSystem.Builder> osFamily() {
> +      return new Function<OSImage, OperatingSystem.Builder>() {
> +         @Override
> +         public OperatingSystem.Builder apply(final OSImage image) {
> +
> +            final String label = image.label();
> +            checkNotNull(label, "label");
> +            OsFamily family = OsFamily.UNRECOGNIZED;
> +
> +            if (label.contains(CENTOS))
> +               family = OsFamily.CENTOS;
> +            else if (label.toUpperCase().contains(OPENLOGIC))

I'm a bit confused. Why the label is compared upper case in some cases and not 
everywhere?

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

Reply via email to