From 4b30e6dd2c5f7d8cf884730c2e728fe11b8bee97 Mon Sep 17 00:00:00 2001 From: Jean-Philippe NOEL Date: Wed, 12 Dec 2012 14:19:53 +0100 Subject: validation/validlib: implement the missing iperf.check_token/1 function, closes #3584 --- validation/validlib/iperf.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/validation/validlib/iperf.py b/validation/validlib/iperf.py index d078c23bbc..816de0b4fc 100644 --- a/validation/validlib/iperf.py +++ b/validation/validlib/iperf.py @@ -58,9 +58,12 @@ def update_config(new_config): def check_tokens(): for host in ["host_a", "host_b"]: - user = config[host]["user"] - non_plc_ip_address = config[host]["non_plc_ip_address"] - host_token.check(user, non_plc_ip_address) + check_token(host) + +def check_token(host): + user = config[host]["user"] + non_plc_ip_address = config[host]["non_plc_ip_address"] + host_token.check(user, non_plc_ip_address) def clear_tokens(): for host in ["host_a", "host_b"]: -- cgit v1.2.3