summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/compute/manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index daffe0515..efe560911 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -2453,8 +2453,9 @@ class ComputeManager(manager.SchedulerDependentManager):
with utils.temporary_mutation(context, read_deleted="yes"):
for instance in self._running_deleted_instances(context):
if action == "log":
- LOG.warning(_("Detected instance with name label "
- "'%(name_label)s' which is marked as "
+ name = instance['name']
+ LOG.warning(_("Detected instance with name label "
+ "'%(name)s' which is marked as "
"DELETED but still present on host."),
locals(), instance=instance)