From c0974bf9dfdb990463b6c48ae93c5eb784d358e5 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 23 Mar 2012 16:45:13 +0000 Subject: Use key in locals() that actually exists Fixes bug 963263 Also, fix whitespace so we don't end up with two almost identical strings to internationalize Change-Id: I4c4faa0c335bdafca9426e2056113bb6f87abc3a --- nova/compute/manager.py | 5 +++-- 1 file 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) -- cgit