

@base.remotable_classmethod
def get_by_host(cls, context, host, expected_attrs=None, use_slave=False):
    db_inst_list = cls._db_instance_get_all_by_host(context, host, columns_to_join=_expected_cols(expected_attrs), use_slave=use_slave)
    return _make_instance_list(context, cls(), db_inst_list, expected_attrs)

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