firewalld/fix_list_all_zones_output.patch

23 lines
841 B
Diff

commit f3cea0e8e2a290d4ce00de936d9b679fbd0e0484 f3cea0e
Author: Eric Garver <eric@garver.life>
Date: Mon Jul 10 15:59:42 2023 -0400
fix(cli): all --list-all-zones output identical
Fixes: #1152
diff --git a/src/firewall-cmd.in b/src/firewall-cmd.in
index 062909e9..c327763f 100755
--- a/src/firewall-cmd.in
+++ b/src/firewall-cmd.in
@@ -2448,7 +2448,8 @@ if a.permanent:
names = fw.config().getZoneNames()
for zone in sorted(names):
interfaces = try_nm_get_interfaces_in_zone(zone)
- cmd.print_zone_info(zone, settings, extra_interfaces=interfaces)
+ cmd.print_zone_info(zone, fw.config().getZoneByName(zone).getSettings(),
+ extra_interfaces=interfaces)
cmd.print_msg("")
sys.exit(0)