cisco_wifi_ctl.py lf_cisco_power.py : cleaned up output when not in verbose mode

This commit is contained in:
Chuck SmileyRekiere
2020-10-29 08:57:27 -06:00
parent 2d30779ade
commit 2d46e31f80
2 changed files with 4 additions and 4 deletions

View File

@@ -1432,7 +1432,7 @@ def main():
try:
print("3504 cisco_wifi_ctl.py: config 802.11a enable network")
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port])
"--action", "cmd", "--value", "config 802.11a enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
except subprocess.CalledProcessError as process_error:
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
exit(1)
@@ -1440,7 +1440,7 @@ def main():
try:
print("3504 cisco_wifi_ctl.py: config 802.11b enable network")
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
"--action", "cmd", "--value", "config 802.11b enable network","--port", args.port])
"--action", "cmd", "--value", "config 802.11b enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
except subprocess.CalledProcessError as process_error:
print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
exit(1)