mirror of
https://github.com/DaanSelen/meshbook.git
synced 2026-02-20 00:12:10 +00:00
Slight modification.
This commit is contained in:
@@ -191,15 +191,12 @@ async def filter_targets(devices: list[dict], os_categories: dict, target_os: st
|
||||
if not device["reachable"]:
|
||||
continue # Skip unreachable devices.
|
||||
|
||||
if target_os and target_tag not in device["device_tags"]:
|
||||
if target_tag and target_tag not in device["device_tags"]:
|
||||
continue
|
||||
|
||||
if device["device_os"] not in allowed_os:
|
||||
continue
|
||||
|
||||
if target_os and target_os != device["device_os"]:
|
||||
continue
|
||||
|
||||
valid_devices.append(device["device_id"])
|
||||
|
||||
return valid_devices
|
||||
|
||||
Reference in New Issue
Block a user