ansible/changelogs/fragments/syslog-prettier-error.yml
Rick Elrod f7078c1f8f
Throw a prettier error in m_u.basic syslog ()
Change:
- In certain situations, such as when the input string contains null
  bytes (\0), syslog.syslog will throw a TypeError. Handle that and
  fail_json instead.

Test Plan:
- New test
- ansible-test --docker centos[68] (for py2 and py3 respectively)

Tickets:
- Refs 

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-07-01 09:28:48 -05:00

2 lines
167 B
YAML

minor_changes:
- The logging functionality in module_utils.basic now returns a nicer error when it falls back to syslog but ends up getting a TypeError thrown back.