

@base.remotable_classmethod
def get_by_id(cls, context, inst_id, expected_attrs=None):
    if (expected_attrs is None):
        expected_attrs = ['info_cache', 'security_groups']
    columns_to_join = _expected_cols(expected_attrs)
    db_inst = db.instance_get(context, inst_id, columns_to_join=columns_to_join)
    return db_inst._from_db_object(context, cls(), db_inst, expected_attrs)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py Instance.get_by_id/VarMisuse@64/110 `cls`->`db_inst`