>     }
>  
>     @Override
> -   public Iterable<ProductItem> listImages() {
> -      return filter(productPackageSupplier.get().getItems(), 
> categoryCode("os"));
> +   public Set<OperatingSystem> listImages() {
> +      Set<OperatingSystem> result = Sets.newHashSet();
> +      Set<SoftwareDescription> unfiltered = 
> api.getSoftwareDescriptionApi().getAllObjects();
> +      Set<OperatingSystem> osAvailable = 
> createObjectOptionsSupplier.get().getVirtualGuestOperatingSystems();
> +      for (OperatingSystem os : osAvailable) {
> +         final String operatingSystemReferenceCode = 
> os.getOperatingSystemReferenceCode();
> +         result.addAll(
> +                 FluentIterable.from(unfiltered)
> +                         .filter(new Predicate<SoftwareDescription>() {
> +                            @Override
> +                            public boolean apply(SoftwareDescription input) {
> +                               return input.getOperatingSystem() == 1 && 
> input.getReferenceCode().equals

Replace the `1` with a  constant that describes what actually that value is?

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

Reply via email to