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:
Lars Kellogg-Stedman 2018-02-17 00:01:01 -05:00
parent d2af7e9ece
commit 050b5293b3
1 changed files with 1 additions and 0 deletions

View File

@ -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)