1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix ansible-test selection of inventory file.

This commit is contained in:
Matt Clay 2017-02-16 14:26:31 -08:00
parent 8dcec1b659
commit 2192c1eb02

View file

@ -550,11 +550,11 @@ def command_integration_role(args, target, start_at_task):
vars_file = 'integration_config.yml' vars_file = 'integration_config.yml'
if 'windows/' in target.aliases: if isinstance(args, WindowsIntegrationConfig):
inventory = 'inventory.winrm' inventory = 'inventory.winrm'
hosts = 'windows' hosts = 'windows'
gather_facts = False gather_facts = False
elif 'network/' in target.aliases: elif isinstance(args, NetworkIntegrationConfig):
inventory = 'inventory.networking' inventory = 'inventory.networking'
hosts = target.name[:target.name.find('_')] hosts = target.name[:target.name.find('_')]
gather_facts = False gather_facts = False