> @@ -65,6 +65,13 @@
>        String version = on(".").join(limit(skip(splits, 1), splits.size() - 
> 2));
>        osBuilder.version(version);
>  
> +      if (image.getDeprecated().isPresent()) {
> +         if (image.getDeprecated().get().getState().isPresent()) {
> +            builder.userMetadata(ImmutableMap.<String,String>builder()

Turns out this still needed the first isPresent check, and I changed 
`getState().get()` to `getState().orNull()` to be safe there too.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/16/files#r5379741

Reply via email to