diff --git a/ceilometer/compute/pollsters/disk.py b/ceilometer/compute/pollsters/disk.py index af2af5153..79053d8ff 100644 --- a/ceilometer/compute/pollsters/disk.py +++ b/ceilometer/compute/pollsters/disk.py @@ -78,13 +78,13 @@ class _Base(plugin.ComputePollster): def get_samples(self, manager, cache, instance): instance_name = util.instance_name(instance) - c_data = self._populate_cache( - manager.inspector, - cache, - instance, - instance_name, - ) try: + c_data = self._populate_cache( + manager.inspector, + cache, + instance, + instance_name, + ) yield self._get_sample(instance, c_data) except Exception as err: LOG.warning('Ignoring instance %s: %s',