Fixes DiskInfoPollster AttributeError exception
If a NotImplementedError exception is raised while getting samples through a DiskInfoPollster, another exception occurs, as it tries to access an attribute that does not exist. Replaces the usage of manager.inspector with self.inspector. Change-Id: Ie1bb6eaffc0b2671f8fefb4771dbd2191eb5cf5f Closes-Bug: #1460207
This commit is contained in:
parent
e71e391a4f
commit
b8b90ac0fd
@ -706,7 +706,7 @@ class _DiskInfoPollsterBase(pollsters.BaseComputePollster):
|
|||||||
# Selected inspector does not implement this pollster.
|
# Selected inspector does not implement this pollster.
|
||||||
LOG.debug(_('%(inspector)s does not provide data for '
|
LOG.debug(_('%(inspector)s does not provide data for '
|
||||||
' %(pollster)s'), (
|
' %(pollster)s'), (
|
||||||
{'inspector': manager.inspector.__class__.__name__,
|
{'inspector': self.inspector.__class__.__name__,
|
||||||
'pollster': self.__class__.__name__}))
|
'pollster': self.__class__.__name__}))
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
instance_name = util.instance_name(instance)
|
instance_name = util.instance_name(instance)
|
||||||
|
Loading…
Reference in New Issue
Block a user