Merge "Add check for hypervisor state before getting uptime"
This commit is contained in:
commit
293e36c61d
@ -79,7 +79,8 @@ class HypervisorAdminTestJSON(HypervisorAdminTestBase):
|
||||
for hyper in hypers:
|
||||
details = (self.client.show_hypervisor(hyper['id'])
|
||||
['hypervisor'])
|
||||
if details['hypervisor_type'] != 'ironic':
|
||||
if (details['hypervisor_type'] != 'ironic' and
|
||||
details['state'] == 'up'):
|
||||
hypers_without_ironic.append(hyper)
|
||||
ironic_only = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user