Skip to content

Commit

Permalink
Add reporter to report logs sent by foreman callback
Browse files Browse the repository at this point in the history
When ansible fails to connect to remote host,
callback sends a report to Foreman without
any indication that the report comes from
Ansible. As a result, Foreman is unable
to determine the report origin.

This adds a 'reporter' attribute into
the logs that are sent.
  • Loading branch information
Ondrej Prazak authored and evgeni committed Aug 3, 2020
1 parent 37c9334 commit 70e039a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/callback/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def send_reports(self, stats):
"metrics": metrics,
"status": status,
"logs": log,
"reporter": "ansible",
}
}
try:
Expand Down

0 comments on commit 70e039a

Please sign in to comment.