mirror of https://github.com/apache/jclouds.git
Improve image check in the BaseImageExtensionLiveTest
This commit is contained in:
parent
755a7ecb8d
commit
6b3aed3c89
|
@ -162,12 +162,7 @@ public abstract class BaseImageExtensionLiveTest extends BaseComputeServiceConte
|
||||||
}
|
}
|
||||||
|
|
||||||
private Optional<? extends Image> getImage() {
|
private Optional<? extends Image> getImage() {
|
||||||
return Iterables.tryFind(listImages(), new Predicate<Image>() {
|
return Optional.fromNullable(view.getComputeService().getImage(imageId));
|
||||||
@Override
|
|
||||||
public boolean apply(Image input) {
|
|
||||||
return input.getId().equals(imageId);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkReachable(NodeMetadata node) {
|
private void checkReachable(NodeMetadata node) {
|
||||||
|
|
Loading…
Reference in New Issue