> +   /**
> +    * Configures the networkking for the created virtual machine.
> +    * <p>
> +    * If the template options have been configured with a set of network
> +    * identifiers, jclouds will assign the virtual machine one IP address of
> +    * each network.
> +    * <p>
> +    * If no network ids have been defined, jclouds will try to assign a 
> public
> +    * IP address. If no public IP addresses are available in the user 
> account,
> +    * then an IP address in the virtual datacenter's default network will be
> +    * assigned.
> +    */
> +   private void configureNetworking(VirtualMachine vm, 
> VirtualApplianceCachingTemplate template, Datacenter datacenter,
> +         TemplateOptions options) {
> +
> +      if (!options.getNetworks().isEmpty()) {

Maybe change this around and escape earlier here?
```
if (options.getNetworks().isEmpty()) {
  // maybe logging here?
  return;
}
// rest here
```

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

Reply via email to