Merge "Drop override of [oslo_policy] policy_file"

This commit is contained in:
Zuul
2025-06-25 15:32:10 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 9 deletions

View File

@@ -13,7 +13,6 @@
"""Policy Engine For Octavia."""
from oslo_config import cfg
from oslo_log import log as logging
from oslo_policy import opts
from oslo_policy import policy as oslo_policy
from oslo_utils import excutils
@@ -25,13 +24,6 @@ LOG = logging.getLogger(__name__)
OCTAVIA_POLICY = None
# TODO(gmann): Remove setting the default value of config policy_file
# once oslo_policy change the default value to 'policy.yaml'.
# https://github.com/openstack/oslo.policy/blob/a626ad12fe5a3abd49d70e3e5b95589d279ab578/oslo_policy/opts.py#L49
DEFAULT_POLICY_FILE = 'policy.yaml'
opts.set_defaults(cfg.CONF, DEFAULT_POLICY_FILE)
def get_enforcer():
global OCTAVIA_POLICY
if OCTAVIA_POLICY is None:

View File

@@ -23,7 +23,7 @@ oslo.i18n>=3.20.0 # Apache-2.0
oslo.log>=4.3.0 # Apache-2.0
oslo.messaging>=14.1.0 # Apache-2.0
oslo.middleware>=4.0.1 # Apache-2.0
oslo.policy>=3.7.0 # Apache-2.0
oslo.policy>=4.5.0 # Apache-2.0
oslo.reports>=1.18.0 # Apache-2.0
oslo.serialization>=2.28.1 # Apache-2.0
oslo.upgradecheck>=1.3.0 # Apache-2.0