Skip to content

Commit e101a48

Browse files
authored
Fix typo
The cookie is saved with key `cookie` intead of `ldap_cookie` in the `self.__data` dict
1 parent 326f870 commit e101a48

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy