Fixed wrong behavior in method search_s in BaseLdap class.

Variable 'py_result' can be not initialized if self.page_size > 0
because it's initialized only in the 'else' block.

Closes bug 1305056
Change-Id: Ib9cfb2c03279d97ec0c1a4f8cb45fe5b568b9d7a
This commit is contained in:
Sergey Nikitin 2014-04-09 17:27:28 +04:00
parent dc43f94d71
commit a9d4e59e86
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ class KeystoneLDAPHandler(LDAPHandler):
filterstr_utf8,
attrlist_utf8, attrsonly)
py_result = convert_ldap_result(ldap_result)
py_result = convert_ldap_result(ldap_result)
return py_result