firewalld_info: fail cleanly when D-Bus is unavailable (#805) (#808)

python-firewall wraps a missing D-Bus socket in FirewallError, which the module did not catch, so Ansible reported a module crash instead of a normal failure.

Fixes #678


Assisted-by: Grok 4.7

Signed-off-by: Nikhil Jain <nikhjain@redhat.com>
Co-authored-by: Nikhil Jain <101691834+nikhjain14@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Hideki Saito
2026-10-21 10:26:31 +09:00
committed by GitHub
co-authored by Nikhil Jain Cursor
parent 7f65f3e6d5
commit 36d9bc2ebc
2 changed files with 8 additions and 0 deletions
@@ -0,0 +1,4 @@
bugfixes:
- firewalld_info - return a module failure instead of a traceback when python-firewall raises
``FirewallError``, for example when D-Bus is unavailable
(https://github.com/ansible-collections/ansible.posix/issues/678).