Fix ansible-test selection of inventory file.

pull/21545/head
Matt Clay 8 years ago
parent 8dcec1b659
commit 2192c1eb02

@ -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

Loading…
Cancel
Save