> + ServerWithSecurityGroups instance = serverApi.get().get(instanceId);
> + if (instance == null) {
> + return ImmutableSet.of();
> + }
> +
> + Set<String> groupNames = instance.getSecurityGroupNames();
> + Set<? extends SecurityGroupInZone> rawGroups =
> +
> sgApi.get().list().filter(nameIn(groupNames)).transform(groupToGroupInZone(zone)).toSet();
> +
> + return ImmutableSet.copyOf(transform(filter(rawGroups, notNull()),
> groupConverter));
> + }
> +
> + @Override
> + public SecurityGroup getSecurityGroupById(String id) {
> + checkNotNull(id, "id");
> + ZoneAndId zoneAndId = ZoneAndId.fromSlashEncoded(id);
[minor] combine the two lines?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/144/files#r6344649