> +         for (Location location : locations.get()) {
> +            groupCreator.invalidate(ZoneSecurityGroupNamePortsCidrs.builder()
> +                    .zone(location.getId())
> +                    .name(group.getName())
> +                    .build());
> +         }
> +
> +         return true;
> +      }
> +
> +      return false;
> +   }
> +
> +   @Override
> +   public SecurityGroup addIpPermission(IpPermission ipPermission, 
> SecurityGroup group) {
> +      String id = checkNotNull(group.getId(), "group.getId()");

A group can not have a null ID. But a check for nullity of the group is a good 
idea.

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

Reply via email to