> +         FirewallOptions firewallOptions = new FirewallOptions()
> +                 .name(firewallName)
> +                 .network(network.getSelfLink())
> +                 .allowedRules(rules)
> +                 .sourceTags(templateOptions.getTags())
> +                 .sourceRanges(of(DEFAULT_INTERNAL_NETWORK_RANGE, 
> EXTERIOR_RANGE));
> +         AtomicReference<Operation> operation = 
> newReference(firewallApi.patch(firewallOptions.getName(), firewallOptions));
> +         retry(operationDonePredicate, operationCompleteCheckTimeout, 
> operationCompleteCheckInterval,
> +                 MILLISECONDS).apply(operation);
> +         checkState(!operation.get().getHttpError().isPresent(),"Could not 
> patch firewall, operation failed" + operation);
> +      }
> +   }
> +
> +   private List<Firewall.Rule> createFirewallRulesFromInboundPorts(int[] 
> inboundPorts) {
> +      List<Firewall.Rule> rules = Lists.newArrayList();
> +      for (Integer port : inboundPorts) {

`for (int port : inboundPorts)`?

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

Reply via email to