From 48600f556970a7a4f7ea9194fccc0ff1dc077ca8 Mon Sep 17 00:00:00 2001 From: Juan Vidal Date: Fri, 17 Feb 2017 08:22:51 +0000 Subject: Fix check_ssh to allow any number of SFs to be checked Change-Id: Ida31e1e7f1b638f1ba5e851cbdfd0379c0f546d4 Signed-off-by: Juan Vidal --- sfc/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfc/lib/utils.py') diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py index a3525079..d3b2c063 100644 --- a/sfc/lib/utils.py +++ b/sfc/lib/utils.py @@ -306,7 +306,7 @@ def get_ssh_clients(nodes): def check_ssh(ips, retries=100): """Check SSH connectivity to VNFs""" - check = [False, False] + check = [False for ip in ips] logger.info("Checking SSH connectivity to the SFs with ips %s" % str(ips)) while retries and not all(check): for index, ip in enumerate(ips): -- cgit 1.2.3-korg