From 050b5293b3fa3b01a84b3e79e84f5ddb7fba0872 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Sat, 17 Feb 2018 00:01:01 -0500 Subject: [PATCH] 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 --- ceilometer/compute/discovery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ceilometer/compute/discovery.py b/ceilometer/compute/discovery.py index fc1698e2f5..38a585c9fd 100644 --- a/ceilometer/compute/discovery.py +++ b/ceilometer/compute/discovery.py @@ -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)