Cloudpulse incorrectly reads FQDN host names

Change-Id: Ib25d3fd5329d2cadcd49e1c871b552ac58b6678b
This commit is contained in:
Sawan Choudhary 2019-12-13 01:20:00 +05:30 committed by Anand Shanmugam
parent 9d629e2976
commit 5763a5950f
1 changed files with 1 additions and 1 deletions

View File

@ -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)