Merge "Fixed unraised exception in _disallow_write for LDAP"

This commit is contained in:
Jenkins 2017-01-24 19:50:45 +00:00 committed by Gerrit Code Review
commit ef511f2150
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Identity(base.IdentityDriverBase):
# Unsupported methods
def _disallow_write(self):
if not common_ldap.WRITABLE:
exception.Forbidden(READ_ONLY_LDAP_ERROR_MESSAGE)
raise exception.Forbidden(READ_ONLY_LDAP_ERROR_MESSAGE)
def create_user(self, user_id, user):
self._disallow_write()