Skip to content

Commit

Permalink
remove deprecated [endpoint_policy] enable option
Browse files Browse the repository at this point in the history
the endpoint policy routes and controller are should always be
available.

bp removed-as-of-ocata

Change-Id: I59c3728e984c267f21c1f11b87a77d659c8c8cfb
  • Loading branch information
stevemar committed Oct 7, 2016
1 parent f6aad6a commit ba96448
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
17 changes: 0 additions & 17 deletions keystone/conf/endpoint_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,10 @@
# under the License.

from oslo_config import cfg
from oslo_log import versionutils

from keystone.conf import utils


enabled = cfg.BoolOpt(
'enabled',
default=True,
deprecated_for_removal=True,
deprecated_reason=utils.fmt("""
The option to enable the OS-ENDPOINT-POLICY API extension has been deprecated
in the M release and will be removed in the O release. The OS-ENDPOINT-POLICY
API extension will be enabled by default.
"""),
deprecated_since=versionutils.deprecated.MITAKA,
help=utils.fmt("""
Enable endpoint-policy functionality, which allows policies to be associated
with either specific endpoints, or endpoints of a given service type.
"""))

driver = cfg.StrOpt(
'driver',
default='sql',
Expand All @@ -43,7 +27,6 @@

GROUP_NAME = __name__.split('.')[-1]
ALL_OPTS = [
enabled,
driver,
]

Expand Down
4 changes: 1 addition & 3 deletions keystone/version/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,14 @@ def v3_app_factory(global_conf, **local_conf):
revoke_routers,
federation_routers,
oauth1_routers,
endpoint_policy_routers,
# TODO(morganfainberg): Remove the simple_cert router
# when PKI and PKIZ tokens are removed.
simple_cert_ext]

if CONF.trust.enabled:
all_api_routers.append(trust_routers)

if CONF.endpoint_policy.enabled:
all_api_routers.append(endpoint_policy_routers)

for api_routers in all_api_routers:
routers_instance = api_routers.Routers()
_routers.append(routers_instance)
Expand Down

0 comments on commit ba96448

Please sign in to comment.