Browse Source

Merge "Fix logging libvirt error on python 3"

changes/22/707422/1
Zuul 1 week ago
parent
commit
f19037c1b6
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      ceilometer/compute/discovery.py

+ 1
- 2
ceilometer/compute/discovery.py View File

@@ -24,7 +24,6 @@ from oslo_config import cfg
from oslo_log import log
from oslo_utils import timeutils


try:
import libvirt
except ImportError:
@@ -147,7 +146,7 @@ class InstanceDiscovery(plugin_base.DiscoveryBase):
raise
LOG.error(
"Fail to get domain uuid %s metadata, libvirtError: %s",
domain.UUIDString(), e.message)
domain.UUIDString(), e)
continue

full_xml = etree.fromstring(domain.XMLDesc())

Loading…
Cancel
Save