TT#94751 get_all_hosts_ips fix seen_ips expression

Change-Id: I39381d5d1969a870145a252d6e3743d4074da01e
mr9.1
Kirill Solomko 6 years ago
parent 9fd62e6334
commit b9a0d9fa56

@ -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 });

Loading…
Cancel
Save