Fix ansible-test handling of empty test targets.
Previously empty test targets were ignored by ansible-test. This would prevent them from participating in dependency analysis. These targets are actually empty roles, and should be processed as such.
This commit is contained in:
parent
eee3dc888b
commit
6842c0467f
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ class IntegrationTarget(CompletionTarget):
|
||||||
elif os.path.isdir(os.path.join(path, 'tasks')) or os.path.isdir(os.path.join(path, 'defaults')):
|
elif os.path.isdir(os.path.join(path, 'tasks')) or os.path.isdir(os.path.join(path, 'defaults')):
|
||||||
self.type = 'role'
|
self.type = 'role'
|
||||||
else:
|
else:
|
||||||
self.type = 'unknown'
|
self.type = 'role' # ansible will consider these empty roles, so ansible-test should as well
|
||||||
|
|
||||||
# static_aliases
|
# static_aliases
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue