Fix ansible-test target change classification.
This commit is contained in:
parent
357dafffa4
commit
2feda390b5
1 changed files with 6 additions and 9 deletions
|
@ -631,18 +631,15 @@ class PathMapper(object):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
return minimal
|
return minimal
|
||||||
|
|
||||||
target = self.integration_targets_by_name[path.split('/')[3]]
|
target = self.integration_targets_by_name.get(path.split('/')[3])
|
||||||
|
|
||||||
|
if not target:
|
||||||
|
display.warning('Unexpected non-target found: %s' % path)
|
||||||
|
return minimal
|
||||||
|
|
||||||
if 'hidden/' in target.aliases:
|
if 'hidden/' in target.aliases:
|
||||||
if target.type == 'role':
|
|
||||||
return minimal # already expanded using get_dependent_paths
|
return minimal # already expanded using get_dependent_paths
|
||||||
|
|
||||||
return {
|
|
||||||
'integration': self.integration_all_target,
|
|
||||||
'windows-integration': self.integration_all_target,
|
|
||||||
'network-integration': self.integration_all_target,
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'integration': target.name if 'posix/' in target.aliases else None,
|
'integration': target.name if 'posix/' in target.aliases else None,
|
||||||
'windows-integration': target.name if 'windows/' in target.aliases else None,
|
'windows-integration': target.name if 'windows/' in target.aliases else None,
|
||||||
|
|
Loading…
Reference in a new issue