]> xenbits.xensource.com Git - libvirt.git/commit
util: virFirewallDGetPolicies: gracefully handle older firewalld
authorEric Garver <eric@garver.life>
Thu, 10 Nov 2022 16:31:45 +0000 (11:31 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Nov 2022 11:52:02 +0000 (12:52 +0100)
commitd5ae0cd17827e8d2b26b0165a46ab0ebe6d7ce21
tree57bb7c8b36a8da79adba74976ece4eedbce4cf32
parent7594532ae208f0af0dea1174e71ee1b84105d584
util: virFirewallDGetPolicies: gracefully handle older firewalld

If the running firewalld doesn't support getPolicies() then we fallback
to the "libvirt" zone. Throwing an error log is excessive since we
gracefully fallback.

Avoids these logs:

error : virGDBusCallMethod:242 : error from service: \
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod

Fixes: ab56f84976e0 ("util: add virFirewallDGetPolicies()")
Signed-off-by: Eric Garver <eric@garver.life>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virfirewalld.c