trevorflanagan commented on this pull request.
> + this.locations = locations;
+ this.imageDescriptionToOsFamily = imageDescriptionToOsFamily;
+ }
+
+ @Override
+ public Image apply(OsImage input) {
+
+ OsFamily osFamily =
imageDescriptionToOsFamily.apply(input.description());
+ String osVersion = parseVersion(input.description());
+
+ OperatingSystem os =
OperatingSystem.builder().name(input.name()).description(input.description())
+
.family(osFamily).version(osVersion).is64Bit(is64bit(input)).build();
+
+ return new
ImageBuilder().id(input.id()).name(input.name()).description(input.description())
+ .status(Image.Status.AVAILABLE).operatingSystem(os).location(
+
FluentIterable.from(locations.get()).firstMatch(LocationPredicates.idEquals(input.datacenterId()))
Image is only available in certain locations, so what I have here is valid.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/421#discussion_r153416969