From 2192c1eb02ecde6a07928f284e819ba9af3a8327 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 16 Feb 2017 14:26:31 -0800 Subject: [PATCH] Fix ansible-test selection of inventory file. --- test/runner/lib/executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index 44d5e185c2a..d7506d65ac4 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -550,11 +550,11 @@ def command_integration_role(args, target, start_at_task): vars_file = 'integration_config.yml' - if 'windows/' in target.aliases: + if isinstance(args, WindowsIntegrationConfig): inventory = 'inventory.winrm' hosts = 'windows' gather_facts = False - elif 'network/' in target.aliases: + elif isinstance(args, NetworkIntegrationConfig): inventory = 'inventory.networking' hosts = target.name[:target.name.find('_')] gather_facts = False