

@base.remotable_classmethod
def get_by_uuid(cls, context, uuid, expected_attrs=None, use_slave=False):
    if (expected_attrs is None):
        expected_attrs = ['info_cache', 'security_groups']
    columns_to_join = _expected_cols(expected_attrs)
    db_inst = context._db_instance_get_by_uuid(context, uuid, columns_to_join, use_slave=use_slave)
    return cls._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_uuid/VarMisuse@54/87 `cls`->`context`