Corrected debug msg in CPUL3CachePollster

This patch fixed the KeyError exception when logging the debug message
in CPUL3CachePollster.

Change-Id: I32b6a79b6ecace3fc4635728e289b7881aa54ca3
(cherry picked from commit 64da0bb146)
This commit is contained in:
Lianhao Lu 2016-11-25 13:47:00 +08:00
parent 4f42ed430a
commit 627a00d1bf
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class CPUL3CachePollster(pollsters.BaseComputePollster):
cpu_cache = self.inspector.inspect_cpu_l3_cache(instance)
LOG.debug(_("CPU cache size: %(id)s %(cache_size)d"),
({'id': instance.id,
'l3_cache_usage': cpu_cache.l3_cache_usage}))
'cache_size': cpu_cache.l3_cache_usage}))
yield util.make_sample_from_instance(
instance,
name='cpu_l3_cache',