jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Cole <notificati...@github.com>
Subject Re: [jclouds-labs-google] Use images from all public projects and filter deprecated ones (#77)
Date Tue, 04 Nov 2014 15:24:36 GMT
> @@ -267,20 +274,34 @@ public MachineTypeInZone apply(MachineType arg0) {
>  
>     @Override
>     public Iterable<Image> listImages() {
> -      return ImmutableSet.<Image>builder()
> -              .addAll(api.getImageApi(userProject.get()).list().concat())
> -              .addAll(api.getImageApi(DEBIAN_PROJECT).list().concat())
> -              .addAll(api.getImageApi(CENTOS_PROJECT).list().concat())
> -              .build();
> +      ImmutableSet.Builder<Image> imagesBuilder = ImmutableSet.builder();

please stop using Set :)

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/77/files#r19809188
Mime
View raw message