diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-04-24 16:48:08 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-05-30 21:05:24 +0200 |
commit | 9fcbc8d1efc7b0c8d0bd2c9c01e1da412c0f5f7e (patch) | |
tree | 98471e67a6560684477aad48d9f2519b47aaa576 /source4/scripting | |
parent | 482d7f27fe6d7de0ff9afa138204d105ca4a5886 (diff) | |
download | samba-9fcbc8d1efc7b0c8d0bd2c9c01e1da412c0f5f7e.tar.gz |
KCC: docstring for sort_dsa_by_gc_and_guid
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>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/samba_kcc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index dbb6d62b9e8..bb04b9328cb 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -2759,6 +2759,15 @@ def sort_replica_by_dsa_guid(rep1, rep2): def sort_dsa_by_gc_and_guid(dsa1, dsa2): + """Helper to sort DSAs by guid global catalog status + + GC DSAs come before non-GC DSAs, other than that, the guids are + sorted in NDR form. + + :param dsa1: A DSA object + :param dsa2: Another DSA + :return: -1, 0, or 1, indicating sort order. + """ if dsa1.is_gc() and not dsa2.is_gc(): return -1 if not dsa1.is_gc() and dsa2.is_gc(): |