fix: probleme de childs non définis quand le LdapEntryTree n'a pas d'enfant
This commit is contained in:
parent
85bee1b89e
commit
1588fdc49a
@ -535,8 +535,8 @@ class LdapEntryTree(LdapEntry):
|
||||
self.val = val
|
||||
self.__dict__ = val.__dict__
|
||||
self.__dict__['value'] = val
|
||||
if len(childs) > 0:
|
||||
self.childs = dict()
|
||||
if len(childs) > 0:
|
||||
for key,child in childs.iteritems():
|
||||
key = key.split("=")[1]
|
||||
self.childs[key] = LdapEntryTree(child[0], child[1])
|
||||
|
Loading…
Reference in New Issue
Block a user