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 Wed, 05 Nov 2014 16:09:32 GMT
>     @Override
>     public Image getImage(String id) {
> -      return Objects.firstNonNull(api.getImageApi(userProject.get()).get(id),
> -                                  Objects.firstNonNull(api.getImageApi(DEBIAN_PROJECT).get(id),
> -                                          api.getImageApi(CENTOS_PROJECT).get(id)));
> +      Image image = api.getImageApi(userProject.get()).get(id);

I like this as it makes it obvious how expensive this is!

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