Skip to content

Commit 0a211da

Browse files
committed
Slight modification.
1 parent 1450416 commit 0a211da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

meshbook.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,12 @@ def get_os_variants(category: str, os_map: dict) -> set:
191191
if not device["reachable"]:
192192
continue # Skip unreachable devices.
193193

194-
if target_os and target_tag not in device["device_tags"]:
194+
if target_tag and target_tag not in device["device_tags"]:
195195
continue
196196

197197
if device["device_os"] not in allowed_os:
198198
continue
199199

200-
if target_os and target_os != device["device_os"]:
201-
continue
202-
203200
valid_devices.append(device["device_id"])
204201

205202
return valid_devices

0 commit comments

Comments
 (0)