Merge "libvirt check: use unqualified hostname"

This commit is contained in:
Zuul 2017-10-27 13:30:51 +00:00 committed by Gerrit Code Review
commit 6c3d4a9fda
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class LibvirtCheck(AgentCheck):
client_version=ma_version.version_string)
self._get_this_host_aggregate(nova_client)
instances = nova_client.servers.list(
search_opts={'all_tenants': 1, 'host': self.hostname})
search_opts={'all_tenants': 1, 'host': self.hostname.split('.')[0]})
# Lay the groundwork for fetching VM IPs and network namespaces
if self.init_config.get('ping_check'):
nu = neutron_client.Client(