1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

KCC: add a warning about side-effects in RepsFromTo.__setattr__

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2015-04-23 14:24:59 +12:00 committed by Andrew Bartlett
parent c73a571353
commit f1b7007883

View File

@ -1915,7 +1915,11 @@ class RepsFromTo(object):
return text
def __setattr__(self, item, value):
"""Set an attribute and chyange update flag.
Be aware that setting any RepsFromTo attribute will set the
drsuapi.DRSUAPI_DRS_UPDATE_ADDRESS update flag.
"""
if item in ['schedule', 'replica_flags', 'transport_guid',
'source_dsa_obj_guid', 'source_dsa_invocation_id',
'consecutive_sync_failures', 'last_success',