Skip to content

Commit

Permalink
Update anta/runner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Oct 30, 2024
1 parent cb0392b commit c93f9e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions anta/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ def prepare_tests(
for device in inventory.devices:
if tags:
# If there are CLI tags, execute tests with matching tags for this device
matching_tags = tags.intersection(device.tags)
if not matching_tags:
if not (matching_tags := tags.intersection(device.tags)):
# The device does not have any selected tag, skipping
continue
device_to_tests[device].update(catalog.get_tests_by_tags(matching_tags))
Expand Down

0 comments on commit c93f9e1

Please sign in to comment.