From 0e77003df41fdcc538e3c4d7f688285ccc64fbeb Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 13 Oct 2014 14:16:58 +0200 Subject: [PATCH] MT#9281 fix b196b6b04f2 get_all_cluster_set_shared_ip_maps: don't add non shared ips Change-Id: I8b575e56d4667499843f41dab4a0bc26e9c0e774 --- lib/get_all_cluster_set_shared_ip_maps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/get_all_cluster_set_shared_ip_maps b/lib/get_all_cluster_set_shared_ip_maps index 04b90dbf..851a9a06 100644 --- a/lib/get_all_cluster_set_shared_ip_maps +++ b/lib/get_all_cluster_set_shared_ip_maps @@ -28,12 +28,12 @@ theset.ips = []; FOREACH host IN set_hosts; - NEXT UNLESS blktmp.processed_hosts.$host.defined; + NEXT IF blktmp.processed_hosts.$host.defined; NEXT UNLESS hosts.$host.role.grep('^' _ argv.type _ '$').size(); + peer = hosts.$host.peer; FOREACH iface IN hosts.$host.interfaces; NEXT UNLESS hosts.$host.$iface.cluster_sets.grep('^' _ set _ '$').size(); blktmp.processed_hosts.$peer = 1; - theset.ips.push(hosts.$host.$iface.ip); FOREACH ip IN hosts.$host.$iface.shared_ip; theset.ips.push(ip); END;