diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 0fe81639..3753fd82 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -660,7 +660,7 @@ def main(): if i == 1: print("did not get the (config)# prompt") - if (args.action == "wlan" and (args.wlan is None)): + if (args.action == "no_wlan" and (args.wlan is None)): raise Exception("wlan is required") if (args.action == "no_wlan"): egg.sendline("config t")