mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove 'net' hardcoding on ansible-test executor (#28334)
We need to run network-integration against platform agnostic modules, which they all are named as net_* . There is a hardcoding in executor where if prefix is 'net' the hosts is set to all, removing these lines to have desired behaviour.
This commit is contained in:
parent
119a79cf0c
commit
746b433c29
1 changed files with 0 additions and 2 deletions
|
@ -681,8 +681,6 @@ def command_integration_role(args, target, start_at_task):
|
||||||
inventory = args.inventory or 'inventory.networking'
|
inventory = args.inventory or 'inventory.networking'
|
||||||
hosts = target.name[:target.name.find('_')]
|
hosts = target.name[:target.name.find('_')]
|
||||||
gather_facts = False
|
gather_facts = False
|
||||||
if hosts == 'net':
|
|
||||||
hosts = 'all'
|
|
||||||
else:
|
else:
|
||||||
inventory = 'inventory'
|
inventory = 'inventory'
|
||||||
hosts = 'testhost'
|
hosts = 'testhost'
|
||||||
|
|
Loading…
Reference in a new issue