From 58a54a774ad62445746602e11e2605a7f882799e Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 30 Sep 2020 18:08:34 -0600 Subject: [PATCH] bug --- cisco_wifi_ctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 64f17047..257825b4 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -423,7 +423,7 @@ def main(): egg.sendline("en") sleep(0.1) j = egg.expect_exact(["Password:",pexpect.TIMEOUT], timeout=2) - if k == 0: + if j == 0: logg.info("9800 received password prompt will send password: {} i:{} j:{} before {} after {}".format(args.passwd,i,j,egg.before,egg.after)) egg.sendline(args.passwd) sleep(0.1)