the previous patch was missing a 'continue'
This commit puts a try/except AttributeError block around all the code that is fetching attributes on the result of metadata_xml.find(...). Change-Id: I41aa76cf9def3e8c4bceef0280d15c1fd7c48e3d Closes-Bug: #1749960
This commit is contained in:
parent
d2af7e9ece
commit
050b5293b3
@ -193,6 +193,7 @@ class InstanceDiscovery(plugin_base.DiscoveryBase):
|
||||
"Fail to get domain uuid %s metadata: "
|
||||
"metadata was missing expected attributes",
|
||||
domain.UUIDString())
|
||||
continue
|
||||
|
||||
dom_state = domain.state()[0]
|
||||
vm_state = libvirt_utils.LIBVIRT_POWER_STATE.get(dom_state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user