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.
pull/50971/head
Matt Clay 6 years ago
parent eee3dc888b
commit 6842c0467f

@ -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')):
self.type = 'role'
else:
self.type = 'unknown'
self.type = 'role' # ansible will consider these empty roles, so ansible-test should as well
# static_aliases

Loading…
Cancel
Save