Change-Id: I75d92976f4486933d432a8066159dbb66c12daf5
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
def get_nova_availability_zones(nova):
"""
- Returns the names of all nova compute servers
+ Returns the names of all nova active compute servers
:param nova: the Nova client
:return: a list of compute server names
"""
for zone in zones:
if zone.zoneName == 'nova':
for key, host in zone.hosts.items():
- out.append(zone.zoneName + ':' + key)
+ if host['nova-compute']['available']:
+ out.append(zone.zoneName + ':' + key)
return out