summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-04-30 15:56:25 +0000
committerGerrit Code Review <review@openstack.org>2013-04-30 15:56:25 +0000
commita9c1480df7cd7bd192afffc8674db193f1a8aed4 (patch)
tree6d347a7cf7dd087e554c84ad23520759622371e8
parentf582052f97e091cb3cd27cc577b7067577ad723a (diff)
parentf0ac56b5fd2e62b0483654f7bb4381f7554e4646 (diff)
downloadnova-a9c1480df7cd7bd192afffc8674db193f1a8aed4.tar.gz
nova-a9c1480df7cd7bd192afffc8674db193f1a8aed4.tar.xz
nova-a9c1480df7cd7bd192afffc8674db193f1a8aed4.zip
Merge "Remove local variable only used in logging."
-rw-r--r--nova/scheduler/filter_scheduler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/scheduler/filter_scheduler.py b/nova/scheduler/filter_scheduler.py
index db871dee9..d18eaedd6 100644
--- a/nova/scheduler/filter_scheduler.py
+++ b/nova/scheduler/filter_scheduler.py
@@ -70,9 +70,8 @@ class FilterScheduler(driver.Scheduler):
'scheduler.run_instance.start', notifier.INFO, payload)
instance_uuids = request_spec.pop('instance_uuids')
- num_instances = len(instance_uuids)
- LOG.debug(_("Attempting to build %(num_instances)d instance(s)") %
- locals())
+ LOG.debug(_("Attempting to build %(num_instances)d instance(s)"),
+ {'num_instances': len(instance_uuids)})
weighed_hosts = self._schedule(context, request_spec,
filter_properties, instance_uuids)