cc58b62f11
The list of all auth token opts is currently calculated in opts.py. That module is included in auth_token/__init__.py, which in turn owns some opts that are needed by the former. This creates a circular import dependency. In order to fix such situation, this patch proposes to move the auth token opts calculation into auth_token/__init__.py, so that it will no longer need opts.py. Co-Authored-By: Alfredo Moralejo <amoralej@redhat.com> Closes-Bug: #1591913 Change-Id: If67d8bdb68a5ab9c07b960ad0111e2310ad82c83
24 lines
740 B
Python
24 lines
740 B
Python
# Copyright (c) 2014 OpenStack Foundation.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
__all__ = (
|
|
'list_auth_token_opts',
|
|
)
|
|
|
|
from keystonemiddleware import auth_token
|
|
|
|
|
|
def list_auth_token_opts():
|
|
return auth_token.list_opts()
|