Fix ansible-test handling of deleted test targets.

pull/21601/head
Matt Clay 8 years ago
parent 8716a5bc67
commit 1ce2ea0b6c

@ -322,6 +322,9 @@ class PathMapper(object):
return minimal return minimal
if path.startswith('test/integration/targets/'): if path.startswith('test/integration/targets/'):
if not os.path.exists(path):
return minimal
target = self.integration_targets_by_name[path.split('/')[3]] target = self.integration_targets_by_name[path.split('/')[3]]
if 'hidden/' in target.aliases: if 'hidden/' in target.aliases:

Loading…
Cancel
Save