Fix ansible-test selection of inventory file.
This commit is contained in:
parent
8dcec1b659
commit
2192c1eb02
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue