From 683d51fb5cd7c859cff718d671832247b0a8b3a4 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 26 Apr 2018 18:22:21 +0100 Subject: python/samba/netcmd: changes for samab.tests.samba_tool.computer Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- python/samba/remove_dc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/samba/remove_dc.py') 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: -- cgit v1.2.1