mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
jbr_monitor_bssids.py: checks argument type for a nested list
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
@@ -160,7 +160,10 @@ class BssidMonitor(Realm):
|
|||||||
exit_on_error=True)
|
exit_on_error=True)
|
||||||
if args and args.debugging:
|
if args and args.debugging:
|
||||||
pprint(args.debugging)
|
pprint(args.debugging)
|
||||||
|
# we could have a nested list here?
|
||||||
for item in args.debugging:
|
for item in args.debugging:
|
||||||
|
if (type(item) is list):
|
||||||
|
item = item[0]
|
||||||
if item.startswith("tag:"):
|
if item.startswith("tag:"):
|
||||||
Logg.register_tag(item[item.rindex(":"):])
|
Logg.register_tag(item[item.rindex(":"):])
|
||||||
if item.startswith("method:"):
|
if item.startswith("method:"):
|
||||||
@@ -202,6 +205,7 @@ class BssidMonitor(Realm):
|
|||||||
port='all',
|
port='all',
|
||||||
endp='all')
|
endp='all')
|
||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
|
|
||||||
event_response = self.lf_query.events_last_events(event_count=1,
|
event_response = self.lf_query.events_last_events(event_count=1,
|
||||||
debug=self.debug,
|
debug=self.debug,
|
||||||
wait_sec=1,
|
wait_sec=1,
|
||||||
|
|||||||
Reference in New Issue
Block a user