add counter to jobevent object sourced from callback ansible plugin

This commit is contained in:
Matthew Jones
2014-08-19 15:49:52 -04:00
parent 186ab7814f
commit 046561ecaa
5 changed files with 452 additions and 2 deletions
@@ -150,7 +150,7 @@ class CallbackReceiver(object):
if settings.DEBUG:
print data
for key in data.keys():
if key not in ('job_id', 'event', 'event_data', 'created'):
if key not in ('job_id', 'event', 'event_data', 'created', 'counter'):
data.pop(key)
for retry_count in xrange(11):
try: