> @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()) {
Turns out I didn't read your bit well enough - it excluded anything that was
marked as DEPRECATED, but actually, what we want is anything that either has no
deprecation info at all *or* if it does have deprecation info, it's gotta have
DEPRECATED and not OBSOLETE or DELETED. Whoopsie daisy. Fixed.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5380952