Skip to content

Commit 94756e9

Browse files
committedMar 20, 2024
host to hostname
1 parent 71d2ebc commit 94756e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This is a ansible callback
9696
### example output
9797

9898
```
99-
2024-03-19 23:30:42,055 p=1179951 u=nak n=ansible logger | self_hostname="gistrate" ansible-command="task" execution="OK" host="test5" task="show the groups the host(s) are in" message="{
99+
2024-03-19 23:30:42,055 p=1179951 u=nak n=ansible logger | self_hostname="gistrate" ansible-command="task" execution="OK" hostname="test5" task="show the groups the host(s) are in" message="{
100100
"changed": false,
101101
"msg": [
102102
"group2"

‎syslog_json_splunk_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def v2_runner_on_ok(self, result):
111111
hostname = result._host.get_name()
112112
task_name = result._task.name
113113
if result._task.action != "gather_facts" or self.get_option("setup"):
114-
self.logger.info('self_hostname="%s" ansible-command="task" execution="OK" host="%s" task="%s" message="%s"', self.hostname, hostname, task_name, self._dump_results(res))
114+
self.logger.info('self_hostname="%s" ansible-command="task" execution="OK" hostname="%s" task="%s" message="%s"', self.hostname, hostname, task_name, self._dump_results(res))
115115

116116
def v2_runner_on_skipped(self, result):
117117
hostname = result._host.get_name()

0 commit comments

Comments
 (0)