aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Vidal <juan.vidal.allende@ericsson.com>2017-02-17 08:22:51 +0000
committerBrady Johnson <brady.allen.johnson@ericsson.com>2017-02-17 11:32:59 +0000
commit48600f556970a7a4f7ea9194fccc0ff1dc077ca8 (patch)
tree2561d88547f324b86cba6f966c064c55f0af563d
parenta98077845b282f073fbc1cc0255567e756a70e10 (diff)
Fix check_ssh to allow any number of SFs to be checked
Change-Id: Ida31e1e7f1b638f1ba5e851cbdfd0379c0f546d4 Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
-rw-r--r--sfc/lib/utils.py2
1 files changed, 1 insertions, 1 deletions
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):