Exclude ironic computes from node_check test
Change-Id: I0bc232ed96f54ec8f192d3ff8b38c435a7ad9721
This commit is contained in:
parent
ad505fe112
commit
25744be5ea
@ -24,8 +24,9 @@ class NovaHealth(object):
|
||||
hypervisors = self.novaclient.hypervisors.list()
|
||||
except (ClientException, Exception) as e:
|
||||
return (400, e.message, [])
|
||||
hypervisor_names = [node.hypervisor_hostname for node in hypervisors
|
||||
if node.state == "up"]
|
||||
hypervisor_names = [str(node.hypervisor_hostname) for node in
|
||||
hypervisors if node.state == "up" and
|
||||
node.hypervisor_type.lower() == 'qemu']
|
||||
return (200, "success", hypervisor_names)
|
||||
|
||||
def nova_service_list(self):
|
||||
|
Loading…
Reference in New Issue
Block a user