From 5750c34995ba76a348795444e6b8bb021bb303f4 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 26 Oct 2020 09:22:36 -0600 Subject: [PATCH] cisco_wifi_ctl.py : removed expects after command sent, since already done later in code --- cisco_wifi_ctl.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 612b4c63..48077bb1 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -1106,11 +1106,6 @@ def main(): if i == 0: egg.sendline("no logging console") sleep(0.2) - j = egg.expect_exact(["(config)#", pexpect.TIMEOUT],timeout=2) - if j == 0: - logg.info("command sent: no logging console") - if j == 1: - logg.info("timed out on command prompt (config)#") if i == 1: logg.info("did not get the (config)# prompt") @@ -1122,13 +1117,6 @@ def main(): if i == 0: egg.sendline("line console 0") sleep(0.1) - j = egg.expect_exact(["(config-line)#","(config)#",pexpect.TIMEOUT],timeout=2) - if j == 0: - logg.info("command sent: line console 0 received prompt (config-line)#") - if j == 1: - logg.info("command sent: line console 0 received prompt (config)#") - if j == 2: - logg.info("timed out on command prompt (config-line)#") if i == 1: logg.info("did not get the (config)# prompt")