From d7bbfe9cd804412fd4d5bafb289d3487ffdf1ad1 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 20 Mar 2012 09:37:27 -0700 Subject: [PATCH] oversight double calling build() --- .../jclouds/compute/domain/internal/TemplateBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java index c451825e5d..88cb13c99a 100644 --- a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java +++ b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java @@ -614,7 +614,7 @@ public class TemplateBuilderImpl implements TemplateBuilder { location = defaultLocation.get(); Predicate imagePredicate = buildImagePredicate(); - Iterable supportedImages = filter(images, buildImagePredicate()); + Iterable supportedImages = filter(images, imagePredicate); if (size(supportedImages) == 0) { if (imagePredicate == idPredicate) { throw new NoSuchElementException(format("%s not found", idPredicate));