Merge "Have cluster-show list all ips"

This commit is contained in:
Jenkins 2016-11-21 11:03:38 +00:00 committed by Gerrit Code Review
commit 66f65ec5d1
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
fixes:
- The payload for cluster GET now returns ips
for all networks, not just the first one
found for each instance.
Bug 1642695

View File

@ -88,7 +88,7 @@ class ClusterView(object):
if self.load_servers and instance_ips:
instance_dict["ip"] = instance_ips
if instance.type in ip_to_be_published_for:
ip_list.append(instance_ips[0])
ip_list.extend(instance_ips)
if instance.type in instance_dict_to_be_published_for:
instances.append(instance_dict)
ip_list.sort()