trevorflanagan commented on this pull request.
> + OsImageToImage(@Memoized final Supplier<Set<Location>> locations,
+ Function<String, OsFamily> imageDescriptionToOsFamily) {
+ 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())
We use UUID for generating ID values and are satisfied that although a clash
between regions is possible, the chances are very small.
Also in our API a getImages call will return images from a single region only
and will contain images across all zones in the region.
So to answer your questions a getImage call with the ID will be enough to
uniquely identify that Image within the region.
--
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_r153419189