diff options
Diffstat (limited to 'glance/common/wsgi_app.py')
-rw-r--r-- | glance/common/wsgi_app.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/glance/common/wsgi_app.py b/glance/common/wsgi_app.py index 2a3168e0d..ab1f12170 100644 --- a/glance/common/wsgi_app.py +++ b/glance/common/wsgi_app.py @@ -22,7 +22,6 @@ import osprofiler.initializer from glance.api import common import glance.async_ from glance.common import config -from glance.common import exception from glance.common import store_utils from glance import housekeeping from glance.i18n import _ @@ -80,16 +79,6 @@ def _setup_os_profiler(): host=CONF.bind_host) -def _validate_policy_enforcement_configuration(): - if CONF.enforce_secure_rbac != CONF.oslo_policy.enforce_new_defaults: - fail_message = ( - "[DEFAULT] enforce_secure_rbac does not match " - "[oslo_policy] enforce_new_defaults. Please set both to " - "True to enable secure RBAC personas. Otherwise, make sure " - "both are False.") - raise exception.ServerError(fail_message) - - def drain_workers(): # NOTE(danms): If there are any other named pools that we need to # drain before exit, they should be in this list. @@ -155,5 +144,4 @@ def init_app(): run_staging_cleanup() _setup_os_profiler() - _validate_policy_enforcement_configuration() return config.load_paste_app('glance-api') |