> +              createdServerId,
> +              defaultCredentials
> +      );
> +   }
> +
> +   private void checkDataCenterState(String locationId) {
> +      
> checkState(pbApi.getDataCenterApi().getDataCenterState(locationId).getReturn()
>  == ProvisioningState.AVAILABLE,
> +              "Data center not ready.");
> +   }
> +
> +   @Override
> +   public Iterable<Image> listImages() {
> +      logger.trace(">> retrieving images..");
> +      List<Image> allImages = pbApi.getImageApi().getAllImages().getReturn();
> +      // Filter HDD types only, since JClouds doesn't have a concept of 
> "CD-ROM" anyway
> +      Set<Image> filteredImages = Sets.filter(Sets.newHashSet(allImages), 
> new Predicate<Image>() {

yep. see how hard using sets is? :)

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

Reply via email to