> +               //openSUSE 13.1 -> 13.1
> +               if (label.toUpperCase().contains("OPENSUSE"))
> +                  return label.replace("openSUSE ", "");
> +                  //SUSE Linux Enterprise Server 11 SP3 (Premium Image) -> 
> 11 SP3(Premium Image)
> +               else if (label.toUpperCase().contains("SUSE"))
> +                  return label.replace("SUSE Linux Enterprise Server ", "");
> +                  //Ubuntu Server 12.04 LTS -> 12.04 LTS
> +               else if (label.toUpperCase().contains("UBUNTU"))
> +                  return label.replace("Ubuntu Server ", "");
> +                  // return label
> +               else if (label.toUpperCase().contains("WINDOWS"))
> +                  return label;
> +               else if (label.toUpperCase().equals("ORACLE LINUX"))
> +                  return label;
> +
> +               return UNRECOGNIZED + ":" + label;

remove that, just UNRECOGNIZED would be ok.
you could log (debug level?) that this UNRECOGNIZED was  for `label`

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

Reply via email to