summaryrefslogtreecommitdiff
path: root/nova/conductor/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/conductor/manager.py')
-rw-r--r--nova/conductor/manager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/conductor/manager.py b/nova/conductor/manager.py
index d1615c629d..8c367ab78b 100644
--- a/nova/conductor/manager.py
+++ b/nova/conductor/manager.py
@@ -874,8 +874,7 @@ class ComputeTaskManager(base.Base):
elif recreate:
# NOTE(sbauza): Augment the RequestSpec object by excluding
# the source host for avoiding the scheduler to pick it
- request_spec.ignore_hosts = request_spec.ignore_hosts or []
- request_spec.ignore_hosts.append(instance.host)
+ request_spec.ignore_hosts = [instance.host]
# NOTE(sbauza): Force_hosts/nodes needs to be reset
# if we want to make sure that the next destination
# is not forced to be the original host