summaryrefslogtreecommitdiff
path: root/python/samba/remove_dc.py
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-04-26 18:22:21 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-03 03:22:23 +0200
commit683d51fb5cd7c859cff718d671832247b0a8b3a4 (patch)
tree08f5ed701f545bf690a0ddafe4fd99e642de65cd /python/samba/remove_dc.py
parent4764ac05e67dd770894e563fbca31314fb196695 (diff)
downloadsamba-683d51fb5cd7c859cff718d671832247b0a8b3a4.tar.gz
python/samba/netcmd: changes for samab.tests.samba_tool.computer
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba/remove_dc.py')
-rw-r--r--python/samba/remove_dc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/remove_dc.py b/python/samba/remove_dc.py
index 3dc93741a45..fd14a596029 100644
--- a/python/samba/remove_dc.py
+++ b/python/samba/remove_dc.py
@@ -137,7 +137,7 @@ def remove_dns_references(samdb, logger, dnsHostName, ignore_no_name=False):
# By using a set here, duplicates via (eg) example.com/Configuration
# do not matter, they become just example.com
a_names_to_remove_from \
- = set(dns_name_from_dn(dn) for dn in ncs)
+ = set(dns_name_from_dn(str(dn)) for dn in ncs)
def a_rec_to_remove(dnsRecord):
if dnsRecord.wType == DNS_TYPE_A or dnsRecord.wType == DNS_TYPE_AAAA: