mirror of https://github.com/apache/jclouds.git
oversight double calling build()
This commit is contained in:
parent
684210d8d8
commit
fefaa9ad85
|
@ -614,7 +614,7 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
||||||
location = defaultLocation.get();
|
location = defaultLocation.get();
|
||||||
|
|
||||||
Predicate<Image> imagePredicate = buildImagePredicate();
|
Predicate<Image> imagePredicate = buildImagePredicate();
|
||||||
Iterable<? extends Image> supportedImages = filter(images, buildImagePredicate());
|
Iterable<? extends Image> supportedImages = filter(images, imagePredicate);
|
||||||
if (size(supportedImages) == 0) {
|
if (size(supportedImages) == 0) {
|
||||||
if (imagePredicate == idPredicate) {
|
if (imagePredicate == idPredicate) {
|
||||||
throw new NoSuchElementException(format("%s not found", idPredicate));
|
throw new NoSuchElementException(format("%s not found", idPredicate));
|
||||||
|
|
Loading…
Reference in New Issue