From 892f365a1e9d3f477f5ac12a89d64cacb8baf9e1 Mon Sep 17 00:00:00 2001 From: ramishra Date: Wed, 23 Jun 2021 14:48:08 +0530 Subject: [PATCH] Suppress policy deprecation warnings Logs are now filled with these deprecated policy warnings. We'll remove it once we remove the deprecated rules. Closes-Bug: #1933241 Change-Id: I5b52b0bdaa41510c0d962876241bf9b7ad121d96 --- heat/common/policy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heat/common/policy.py b/heat/common/policy.py index 9b72e833a2..7f53b38f7a 100644 --- a/heat/common/policy.py +++ b/heat/common/policy.py @@ -55,6 +55,9 @@ class Enforcer(object): CONF, default_rule=default_rule, policy_file=policy_file) self.log_not_registered = True + # TODO(ramishra) Remove this once remove the deprecated rules. + self.enforcer.suppress_deprecation_warnings = True + # register rules self.enforcer.register_defaults(policies.list_rules()) self.file_rules = self.enforcer.file_rules