andreaturli commented on this pull request.


> +
+      for (String regionId : availableLocationNames) {
+         images.addAll(api.imageApi().list(regionId).concat());
+      }
+      return images.build();
+   }
+
+   @Override
+   public Image getImage(final String id) {
+      Optional<Image> firstInterestingImage = Iterables.tryFind(listImages(), 
new Predicate<Image>() {
+         public boolean apply(Image input) {
+            return input.id().equals(id);
+         }
+      });
+      if (!firstInterestingImage.isPresent()) {
+         throw new IllegalStateException("Cannot find image with the required 
slug " + id);

ok

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/443#discussion_r207133407

Reply via email to