

def _save_migration_context(self, context):
    if self.migration_context:
        self.migration_context.instance_uuid = self.uuid
        with self.migration_context.obj_alternate_context(self):
            self.migration_context._save()
    else:
        objects.MigrationContext._destroy(context, self.uuid)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py Instance._save_migration_context/VarMisuse@36/48 `context`->`self`