refac: remove seemingly unneeded function
This commit is contained in:
+1
-2
@@ -72,8 +72,7 @@ async def gather_targets(args: argparse.Namespace,
|
|||||||
os_categories,
|
os_categories,
|
||||||
target_os,
|
target_os,
|
||||||
ignore_categorisation,
|
ignore_categorisation,
|
||||||
target_tag,
|
target_tag
|
||||||
add_processed_devices
|
|
||||||
)
|
)
|
||||||
await add_processed_devices(processed)
|
await add_processed_devices(processed)
|
||||||
|
|
||||||
|
|||||||
@@ -121,8 +121,7 @@ class utilities:
|
|||||||
os_categories: dict,
|
os_categories: dict,
|
||||||
target_os: str,
|
target_os: str,
|
||||||
ignore_categorisation: bool,
|
ignore_categorisation: bool,
|
||||||
target_tag: str,
|
target_tag: str) -> dict:
|
||||||
add_processed_devices=None) -> dict:
|
|
||||||
"""
|
"""
|
||||||
Processes a single device or pseudo-target against group_list,
|
Processes a single device or pseudo-target against group_list,
|
||||||
filters matches by OS and tags, and adds processed devices.
|
filters matches by OS and tags, and adds processed devices.
|
||||||
@@ -141,8 +140,6 @@ class utilities:
|
|||||||
processed = await utilities.filter_targets(
|
processed = await utilities.filter_targets(
|
||||||
matched_devices, os_categories, target_os, ignore_categorisation, target_tag
|
matched_devices, os_categories, target_os, ignore_categorisation, target_tag
|
||||||
)
|
)
|
||||||
if add_processed_devices:
|
|
||||||
await add_processed_devices(processed)
|
|
||||||
return processed
|
return processed
|
||||||
|
|
||||||
# No matches found
|
# No matches found
|
||||||
|
|||||||
Reference in New Issue
Block a user