Skip to content

Commit 30b24d5

Browse files
authored
Fix typo (#584)
The cookie is saved with key `cookie` intead of `ldap_cookie` in the `self.__data` dict
1 parent e628f15 commit 30b24d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Demo/pyasn1/syncrepl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def syncrepl_entry(self, dn, attributes, uuid):
7676
logger.debug('Detected %s of entry %r', change_type, dn)
7777
# If we have a cookie then this is not our first time being run,
7878
# so it must be a change
79-
if 'ldap_cookie' in self.__data:
79+
if 'cookie' in self.__data:
8080
self.perform_application_sync(dn, attributes, previous_attributes)
8181

8282
def syncrepl_delete(self,uuids):
@@ -98,7 +98,7 @@ def syncrepl_present(self,uuids,refreshDeletes=False):
9898
deletedEntries = [
9999
uuid
100100
for uuid in self.__data.keys()
101-
if uuid not in self.__presentUUIDs and uuid != 'ldap_cookie'
101+
if uuid not in self.__presentUUIDs and uuid != 'cookie'
102102
]
103103
self.syncrepl_delete( deletedEntries )
104104
# Phase is now completed, reset the list

0 commit comments

Comments
 (0)