

def get_security_groups(self, instance=None):
    if (instance is None):
        return self.convert_to_dict_sc_grs(self.nova_client.security_groups.list())
    return self.convert_to_dict_sc_grs(self.nova_client.security_groups.list(instance))

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/network/nova_network.py NovaNetwork.get_security_groups/original