On second though, we should wrap both security_groups = self.ec2_conn.get_* fetches inside an `if groupsid` clause.  So it should look like this...

```
if groupids:
    if groupids[0].startswith('sg-'):
        security_groups = self.ec2_conn.get_all_security_groups(group_ids=groupids)
    else:
        security_groups = self.ec2_conn.get_all_security_groups(groupnames=groupids)
    return security_groups
```