Handle repeat includes in junit callback. (#16484)

pull/16490/head
Matt Clay 9 years ago committed by GitHub
parent 405dca1abe
commit 8f1b487141

@ -237,6 +237,10 @@ class TaskData:
def add_host(self, host): def add_host(self, host):
if host.uuid in self.host_data: if host.uuid in self.host_data:
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)) raise Exception('%s: %s: %s: duplicate host callback: %s' % (self.path, self.play, self.name, host.name))
self.host_data[host.uuid] = host self.host_data[host.uuid] = host

Loading…
Cancel
Save