From b9a0d9fa5659050c579863ba99ee4c06e5ec2095 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 23 Sep 2020 18:54:04 +0200 Subject: [PATCH] TT#94751 get_all_hosts_ips fix seen_ips expression Change-Id: I39381d5d1969a870145a252d6e3743d4074da01e --- lib/get_all_hosts_ips | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get_all_hosts_ips b/lib/get_all_hosts_ips index 87bf1ac0..acacc18b 100644 --- a/lib/get_all_hosts_ips +++ b/lib/get_all_hosts_ips @@ -39,7 +39,7 @@ FOREACH host IN hosts.keys.sort; NEXT UNLESS hosts.$host.exists(iface); NEXT UNLESS hosts.$host.$iface.type.grep('^' _ argv.type _ '$').size(); NEXT UNLESS hosts.$host.$iface.ip; - NEXT UNLESS seen_ips.exists(hosts.$host.$iface.ip); + NEXT IF seen_ips.exists(hosts.$host.$iface.ip); seen_ips.${hosts.$host.$iface.ip} = 1; out.push({ name = host, ip = hosts.$host.$iface.ip });