> @@ -202,6 +214,20 @@ public static void main(String[] args) {
>                    Predicates.<NodeMetadata> and(not(TERMINATED), 
> inGroup(groupName)));
>              System.out.printf("<< destroyed nodes %s%n", destroyed);
>              break;
> +         case LISTIMAGES:
> +            Set<? extends Image> imageList = compute.listImages();
> +            System.out.printf(">> No of images %d\n", imageList.size());
> +            for (Image img : imageList) {
> +               System.out.println(">>>>  " + img);
> +            }
> +            break;
> +         case LISTNODES:
> +            Set<? extends ComputeMetadata> nodeList = compute.listNodes();
> +            System.out.printf(">> No of nodes/instances %d\n", 
> nodeList.size());

Use `%n` rather than `\n` for consistency throughout this class?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/34/files#r10860333

Reply via email to