Remove check for disabled v3

We should never be disabling an API version now, this change
removes a check for seeing if v3 is disabled. Since we should not
be disabling an API version anymore, this check is not needed.

Also removed one test for checking if an API version is disabled.

Change-Id: I08404bf82f26173c68397e33f9e43fadf34ea15e
This commit is contained in:
Gage Hugo
2018-10-25 14:28:53 -05:00
parent d15c0fe5f4
commit 7eec2c5de0
3 changed files with 15 additions and 50 deletions

View File

@@ -151,10 +151,6 @@ def application_factory(name='public'):
# We want to bubble up Flask Exceptions (for now)
PROPAGATE_EXCEPTIONS=True)
# TODO(morgan): Remove "API version registration". For now this is kept
# for ease of conversion (minimal changes)
keystone.api.discovery.register_version('v3')
for api in keystone.api.__apis__:
for api_bp in api.APIs:
api_bp.instantiate_and_register_to_app(app)