From c95538c49c3850a542cbe597737ec411540babe2 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 6 Dec 2019 12:28:07 -0500 Subject: [PATCH] Remove dead code from MigrationTask._execute The legacy_props variable comes from to_legacy_filter_properties_dict and that method does not put a context in the dict so the line being removed was doing nothing. Change-Id: Ie8a1a6b29b4cc03bb972295b681b4c7251fa680a --- nova/conductor/tasks/migrate.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nova/conductor/tasks/migrate.py b/nova/conductor/tasks/migrate.py index e6e31eea97..1f520fa6ab 100644 --- a/nova/conductor/tasks/migrate.py +++ b/nova/conductor/tasks/migrate.py @@ -400,8 +400,6 @@ class MigrationTask(base.TaskBase): selection = self._reschedule() scheduler_utils.populate_filter_properties(legacy_props, selection) - # context is not serializable - legacy_props.pop('context', None) (host, node) = (selection.service_host, selection.nodename)