summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_policy/policy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/oslo_policy/policy.py b/oslo_policy/policy.py
index 445b1df..ea2ab53 100644
--- a/oslo_policy/policy.py
+++ b/oslo_policy/policy.py
@@ -664,6 +664,7 @@ class Enforcer(object):
)
elif self.overwrite:
self.rules = Rules(default_rule=self.default_rule)
+ self.file_rules = {}
for path in existing_policy_dirs:
self._walk_through_policy_directory(
path, self._load_policy_file, True, False)