> +
> + // Create the group if still does not exist
> + VirtualAppliance newVapp = null;
> + if (!vapp.isPresent()) {
> + logger.debug(">> Creating group %s", group);
> + 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());
> + }
> +
> + VirtualApplianceCachingTemplate abiquoTemplate =
> VirtualApplianceCachingTemplate //
> + .from(template) //
> + .with(vdc) //
> + .with(vapp.or(newVapp)) //
Sorry, I was a bit sloppy in my suggestion there ;-) Probably
`withVdc`/`withVapp` or `withVirtualDatacenter`/`withVirtualAppliance` is a
little clearer. But since this is internal, it's a minor - feel free to ignore
and go ahead without changing.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/25/files#r6083941