

def _load_migration_context(self, db_context=_NO_DATA_SENTINEL):
    if (db_context is _NO_DATA_SENTINEL):
        try:
            self.migration_context = objects.MigrationContext.get_by_instance_uuid(self._context, self.uuid)
        except exception.MigrationContextNotFound:
            self.migration_context = None
    elif (db_context is None):
        self.migration_context = None
    else:
        db_context.migration_context = objects.MigrationContext.obj_from_db_obj(db_context)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py Instance._load_migration_context/VarMisuse@82/118 `self`->`db_context`