> +
> + return new OperatingSystem(osFamily, osName, osVersion, osArch,
> osDescription, is64Bit);
> + }
> +
> + @Override
> + public Image apply(OSImage from) {
> + ImageBuilder builder = new ImageBuilder();
> + builder.ids(from.getName());
> + builder.name(from.getLabel());
> + builder.description(from.getDescription() == null ? "" :
> from.getDescription());
> + builder.operatingSystem(parseOs(from));
> + builder.uri(from.getMediaLink());
> +// builder.status(toPortableImageStatus.get(from.getState()));
> + builder.status(Status.AVAILABLE);
> + builder.status(PUBLIC_CATEGORY.equals(from.getCategory()) ?
> Status.AVAILABLE : Status.PENDING);
> + builder.userMetadata(ImmutableMap.<String, String>
> of(OSImage.LOCATION, from.getLocation()));
Can this be transformed into a proper location and set the location field
properly?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/132/files#r24748818