diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2016-11-02 16:48:50 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2016-12-01 05:54:24 +0100 |
commit | 6057c2522c85e23899dc26be4537683e388d49f0 (patch) | |
tree | 96d3404848612f6273ca858e5042a725e9286a3c /python | |
parent | aa63600afb925715f7a24a3af5c0df433541bc12 (diff) | |
download | samba-6057c2522c85e23899dc26be4537683e388d49f0.tar.gz |
KCC: Graphnode.add_edge_from expects dn strings, not objects
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/kcc/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/kcc/__init__.py b/python/samba/kcc/__init__.py index 9b29ef00497..ad322a5c542 100644 --- a/python/samba/kcc/__init__.py +++ b/python/samba/kcc/__init__.py @@ -2307,7 +2307,7 @@ class KCC(object): while candidates and not tnode.has_sufficient_edges(): other = random.choice(candidates) DEBUG("trying to add candidate %s" % other.dsa_dnstr) - if not tnode.add_edge_from(other): + if not tnode.add_edge_from(other.dsa_dnstr): debug.DEBUG_RED("could not add %s" % other.dsa_dnstr) candidates.remove(other) else: |