mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Bug/syslog json exception (#408)
* Adds fix setting options * Adds changelog
This commit is contained in:
parent
eb941c30b4
commit
d1798d3056
2 changed files with 5 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- syslog_json callback - fix plugin exception when running (https://github.com/ansible-collections/community.general/issues/407).
|
|
@ -66,7 +66,9 @@ class CallbackModule(CallbackBase):
|
||||||
|
|
||||||
super(CallbackModule, self).__init__()
|
super(CallbackModule, self).__init__()
|
||||||
|
|
||||||
self.set_options()
|
def set_options(self, task_keys=None, var_options=None, direct=None):
|
||||||
|
|
||||||
|
super(CallbackModule, self).set_options(task_keys=task_keys, var_options=var_options, direct=direct)
|
||||||
|
|
||||||
syslog_host = self.get_option("server")
|
syslog_host = self.get_option("server")
|
||||||
syslog_port = int(self.get_option("port"))
|
syslog_port = int(self.get_option("port"))
|
||||||
|
|
Loading…
Reference in a new issue