> @@ -151,5 +160,22 @@ protected ServerInternal(String id, @Nullable String
> name, java.util.Set<Link> l
> super(id, name, links, uuid, tenantId, userId, updated, created,
> hostId, accessIPv4, accessIPv6, status, image, flavor, keyName, configDrive,
> addresses, metadata, extendedStatus, extendedAttributes, diskConfig);
> }
> }
> +
> + public Server apply(ServerInternalWithoutImage in) {
> + return in.toBuilder().build();
> + }
> +
> + private static class ServerInternalWithoutImage extends Server {
> This caused a lovely StackOverflowError apparently because of the way the
> Gson deserializationContext works
Wow! Fun. Then let's keep as-is. Thanks for trying that out.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/414/files#r14152968