> @Override
> protected GoogleComputeEngineApi create(Properties props,
> Iterable<Module> modules) {
> GoogleComputeEngineApi api = super.create(props, modules);
> + URI imageUri = api.getImageApiForProject("google")
> + .list(new ListOptions.Builder().filter("name eq gcel.*"))
> + .concat()
> + .filter(new Predicate<Image>() {
> + @Override
> + public boolean apply(Image input) {
> + if (input.getDeprecated().isPresent()) {
> + if
> (input.getDeprecated().get().getState().isPresent()) {
Combine these two? I.e.
```
if (input.getDeprecated().isPresent() &&
input.getDeprecated().get().getState().isPresent()) {
...
}
```
?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5362932