Improve image check in the BaseImageExtensionLiveTest

This commit is contained in:
Ignasi Barrera 2015-06-15 17:37:16 +02:00
parent 755a7ecb8d
commit 6b3aed3c89
1 changed files with 1 additions and 6 deletions

View File

@ -162,12 +162,7 @@ public abstract class BaseImageExtensionLiveTest extends BaseComputeServiceConte
}
private Optional<? extends Image> getImage() {
return Iterables.tryFind(listImages(), new Predicate<Image>() {
@Override
public boolean apply(Image input) {
return input.getId().equals(imageId);
}
});
return Optional.fromNullable(view.getComputeService().getImage(imageId));
}
private void checkReachable(NodeMetadata node) {