

@base.remotable_classmethod
def get_by_security_group_id(cls, context, security_group_id):
    db_secgroup = db.security_group_get(context, security_group_id, columns_to_join=['instances.info_cache', 'instances.system_metadata'])
    return _make_instance_list(context, cls(), db_secgroup['instances'], ['info_cache', 'system_metadata'])

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py InstanceList.get_by_security_group_id/original