> +
> +      AtomicReference<Operation> operation = new AtomicReference<Operation>(
> +              api.getNetworkApiForProject(userProject.get()).delete(id));
> +
> +      retry(operationDonePredicate, operationCompleteCheckTimeout, 
> operationCompleteCheckInterval,
> +                 MILLISECONDS).apply(operation);
> +
> +      checkState(!operation.get().getHttpError().isPresent(), "Could not 
> create network, operation failed" + operation);
> +
> +      return true;
> +   }
> +
> +   @Override
> +   public SecurityGroup addIpPermission(IpPermission ipPermission, 
> SecurityGroup group) {
> +
> +      if (api.getNetworkApiForProject(userProject.get()).get(group.getId()) 
> == null) {

Ack, yeah, we should checkState here or some such...

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

Reply via email to