Cloudpulse incorrectly reads FQDN host names
Change-Id: Ib25d3fd5329d2cadcd49e1c871b552ac58b6678b
This commit is contained in:
parent
9d629e2976
commit
5763a5950f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user