diff options
author | Zuul <zuul@review.opendev.org> | 2021-06-25 10:40:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-06-25 10:40:30 +0000 |
commit | d54d7c7a299bcd16f034b62629732722ce2a25f1 (patch) | |
tree | d3f48b0d6709f91b7dcbda9ff8f7a478891949d5 /heat | |
parent | cdabffd002a838ce0653d6a6c0f36a2974caafac (diff) | |
parent | 892f365a1e9d3f477f5ac12a89d64cacb8baf9e1 (diff) | |
download | heat-d54d7c7a299bcd16f034b62629732722ce2a25f1.tar.gz |
Merge "Suppress policy deprecation warnings"
Diffstat (limited to 'heat')
-rw-r--r-- | heat/common/policy.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heat/common/policy.py b/heat/common/policy.py index 9b72e833a..7f53b38f7 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 |