From 3d418e35afecf68ba955915f29a003ad81258037 Mon Sep 17 00:00:00 2001
From: Eric Garver <eric@garver.life>
Date: Tue, 28 Apr 2020 13:48:53 -0400
Subject: [PATCH] fix(zone): listing rich rules in default zone

Fixes: 34bdee40aa61 ("feat: implement policy objects internally")
---
 src/firewall/core/fw_zone.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/firewall/core/fw_zone.py b/src/firewall/core/fw_zone.py
index 6f6fba0..7048a90 100644
--- a/src/firewall/core/fw_zone.py
+++ b/src/firewall/core/fw_zone.py
@@ -744,6 +744,7 @@ class FirewallZone(object):
         return ret
 
     def list_rules(self, zone):
+        zone = self._fw.check_zone(zone)
         ret = set()
         for p_name in [self.policy_name_from_zones(zone, "ANY"),
                        self.policy_name_from_zones(zone, "HOST"),
-- 
1.8.3.1

