> + public Set<SecurityGroup> listSecurityGroups() {
> + Iterable<? extends org.jclouds.ec2.domain.SecurityGroup> rawGroups =
> pollSecurityGroups();
> + Iterable<SecurityGroup> groups = transform(filter(rawGroups,
> notNull()),
> + groupConverter);
> + return ImmutableSet.copyOf(groups);
> + }
> +
> +
> + @Override
> + public Set<SecurityGroup> listSecurityGroupsInLocation(final Location
> location) {
> + String region = AWSUtils.getRegionFromLocationOrNull(location);
> + if (region != null) {
> + return listSecurityGroupsInLocation(region);
> + } else {
> + return ImmutableSet.of();
> + }
Fine by me. Pretty sure I was ripping something else off to do this in the
first place, so it's not a problem to switch it. =)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/33/files#r4736765