Fix keystone.common.rbac_enforcer.__init__.py exporting

keystone.common.rbac_enforcer now exports (and has __all__ setup)
for the RBACEnforcer object. This limits the underlying module
knowledge needed to effectively work with the new flask RBACEnforcer.

Change-Id: I48cafa779ca1895113222a2ebfef6d738a906473
Partial-Bug: #1776504
This commit is contained in:
Morgan Fainberg 2018-07-03 10:12:40 -07:00
parent 9387dfd4cc
commit 0f4fd2e4f3
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from keystone.common.rbac_enforcer import enforcer
from keystone.common.rbac_enforcer.enforcer import RBACEnforcer # noqa
__all__ = ('enforcer',)
__all__ = ('RBACEnforcer',)