1
0
Fork 0
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:
Jose Angel Munoz 2020-05-25 07:47:01 +02:00 committed by GitHub
parent eb941c30b4
commit d1798d3056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- syslog_json callback - fix plugin exception when running (https://github.com/ansible-collections/community.general/issues/407).

View file

@ -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"))