add target_tag in function parameters.

This commit is contained in:
Daan Selen
2025-03-26 16:58:12 +01:00
parent 47eef4cfb0
commit b0f34e9ea0

View File

@@ -151,7 +151,7 @@ async def compile_group_list(session: meshctrl.Session) -> dict:
})
return local_device_list
async def filter_targets(devices: list[dict], os_categories: dict, target_os: str = None) -> list[str]:
async def filter_targets(devices: list[dict], os_categories: dict, target_os: str = None, target_tag: str = None) -> list[str]:
'''
Filters devices based on reachability and optional OS criteria, supporting nested OS categories.
'''