diff --git a/cloudpulse/openstack/api/nova_api.py b/cloudpulse/openstack/api/nova_api.py index 1ded0af..1230c24 100644 --- a/cloudpulse/openstack/api/nova_api.py +++ b/cloudpulse/openstack/api/nova_api.py @@ -24,7 +24,7 @@ class NovaHealth(object): hypervisors = self.novaclient.hypervisors.list() except (ClientException, Exception) as e: return (400, e.message, []) - hypervisor_names = [str(node.hypervisor_hostname) for node in + hypervisor_names = [str(node.service.get('host')) for node in hypervisors if node.state == "up" and node.hypervisor_type.lower() == 'qemu'] return (200, "success", hypervisor_names)