> + .ids(from.getId())
> + .name(get(Splitter.on(":").split(description), 0))
> + .description(description)
> + .operatingSystem(os)
> + .status(Image.Status.AVAILABLE)
> + .build();
> + }
> +
> + /**
> + * Parses the item description to determine the OSFamily
> + *
> + * @return the @see OsFamily or OsFamily.UNRECOGNIZED
> + */
> + private Function<String, OsFamily> osFamily() {
> + return new Function<String, OsFamily>() {
> + OsFamily osFamily = OsFamily.UNRECOGNIZED;
There is no need for this local variable. Just return directly the detected os
family.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10839200