1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Handle repeat includes in junit callback. (#16484)

This commit is contained in:
Matt Clay 2016-06-28 15:55:46 -07:00 committed by GitHub
parent 405dca1abe
commit 8f1b487141

View file

@ -237,7 +237,11 @@ class TaskData:
def add_host(self, host):
if host.uuid in self.host_data:
raise Exception('%s: %s: %s: duplicate host callback: %s' % (self.path, self.play, self.name, host.name))
if host.status == 'included':
# concatenate task include output from multiple items
host.result = '%s\n%s' % (self.host_data[host.uuid].result, host.result)
else:
raise Exception('%s: %s: %s: duplicate host callback: %s' % (self.path, self.play, self.name, host.name))
self.host_data[host.uuid] = host