def normalize_nova_secgroups(groups):
    ret = [{'id': g['id'],
            'name': g['name'],
            'description': g['description'],
            'security_group_rules': normalize_nova_secgroup_rules(g['rules'])
            } for g in groups]
    return meta.obj_list_to_dict(ret)
Normalize the structure of nova security groups
dataset/ETHPy150Open openstack-infra/shade/shade/_utils.py/normalize_nova_secgroups