Merge "`uptime hypervisor` would be failed if some hosts downed"

This commit is contained in:
Zuul 2019-10-16 11:24:20 +00:00 committed by Gerrit Code Review
commit bc54ed8ad8
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ class ListAndGetUptimeHypervisors(utils.NovaScenario):
hypervisors = self._list_hypervisors(detailed)
for hypervisor in hypervisors:
self._uptime_hypervisor(hypervisor)
if hypervisor.state == "up":
self._uptime_hypervisor(hypervisor)
@validation.add("required_services", services=[consts.Service.NOVA])