Skip to content

Commit

Permalink
hide some code to avoide error
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Jul 24, 2024
1 parent 948817c commit 9805e47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pytest_fixtures/core/xdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def align_to_satellite(request, worker_id, satellite_factory):
worker_pos = 0 if worker_id in ["master", "local"] else int(worker_id.replace("gw", ""))

# attempt to add potential satellites from the broker inventory file
if settings.server.inventory_filter:
logger.info(
f'{worker_id=}: Attempting to add Satellite hosts using inventory filter: '
f'{settings.server.inventory_filter}'
)
hosts = Satellite.get_hosts_from_inventory(filter=settings.server.inventory_filter)
settings.server.hostnames += [host.hostname for host in hosts]
# if settings.server.inventory_filter:
# logger.info(
# f'{worker_id=}: Attempting to add Satellite hosts using inventory filter: '
# f'{settings.server.inventory_filter}'
# )
# hosts = Satellite.get_hosts_from_inventory(filter=settings.server.inventory_filter)
# settings.server.hostnames += [host.hostname for host in hosts]

logger.debug(
f'{worker_id=}: {settings.server.xdist_behavior=}, '
Expand Down

0 comments on commit 9805e47

Please sign in to comment.