diff --git a/releasenotes/notes/cluster_list_show_all_ips-3547635440.yaml b/releasenotes/notes/cluster_list_show_all_ips-3547635440.yaml new file mode 100644 index 0000000000..cb6ec4b207 --- /dev/null +++ b/releasenotes/notes/cluster_list_show_all_ips-3547635440.yaml @@ -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 diff --git a/trove/cluster/views.py b/trove/cluster/views.py index 6b2856c728..f60ac0b7c1 100644 --- a/trove/cluster/views.py +++ b/trove/cluster/views.py @@ -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()