> +      return groupConverter.apply(groupCreator.apply(zoneAndName));
> +   }
> +
> +   @Override
> +   public boolean removeSecurityGroup(String id) {
> +      checkNotNull(id, "id");
> +
> +      org.jclouds.cloudstack.domain.SecurityGroup group =
> +              api.getSecurityGroupApi().getSecurityGroup(id);
> +
> +      if (group != null) {
> +         for (IngressRule rule : group.getIngressRules()) {
> +            
> jobComplete.apply(api.getSecurityGroupApi().revokeIngressRule(rule.getId()));
> +         }
> +
> +         api.getSecurityGroupApi().deleteSecurityGroup(id);

If I could figure out what exception would get thrown by it failing...hrm...

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

Reply via email to