> +         public boolean apply(VirtualAppliance input) {
> +            return input.getName().equals(group);
> +         }
> +      });
> +
> +      // Create the group if still does not exist
> +      if (!vapp.isPresent()) {
> +         logger.debug(">> Creating group %s", group);
> +         VirtualAppliance newVapp = VirtualAppliance.builder(context, 
> vdc).name(group).build();
> +         newVapp.save();
> +         logger.debug("<< group(%s) created", newVapp.getId());
> +      } else {
> +         logger.debug(">> Using existing group(%s)", vapp.get().getId());
> +      }
> +
> +      return super.execute(group, count, template, goodNodes, badNodes, 
> customizationResponses);

Cool! That should do the trick and keep it simple and clean. Will give it a try 
and update the PR. Thx!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/25/files#r6074932

Reply via email to