> +
> + // list private images and transform them to OperatingSystem
> + Set<VirtualGuestBlockDeviceTemplateGroup> privateImages =
> api.getAccountApi().getBlockDeviceTemplateGroups();
> + Map<String, SoftwareDescription> privateImagesSoftwareDescriptions =
> extractSoftwareDescriptions(privateImages);
> + for (Map.Entry<String, SoftwareDescription> entry :
> privateImagesSoftwareDescriptions.entrySet()) {
> + OperatingSystem os = getOperatingSystem(entry);
> + if (os != null) {
> + result.add(os);
> + }
> + }
> + // list public images and transform them to OperatingSystem
> + if(includePublicImages) {
> + Set<VirtualGuestBlockDeviceTemplateGroup> publicImages =
> api.getVirtualGuestBlockDeviceTemplateGroupApi().getPublicImages();
> + Map<String, SoftwareDescription> publicImagesSoftwareDescriptions =
> extractSoftwareDescriptions(publicImages);
> + for (Map.Entry<String, SoftwareDescription> entry :
> + publicImagesSoftwareDescriptions.entrySet()) {
[minor] Remove the line break and add spaces after all `if` statements.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/296/files#r11138078