summaryrefslogtreecommitdiff
path: root/python/samba/samdb.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/samdb.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/samdb.py')
-rw-r--r--python/samba/samdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py
index 53f9c4038fa..fa3e4b1b334 100644
--- a/python/samba/samdb.py
+++ b/python/samba/samdb.py
@@ -743,7 +743,7 @@ accountExpires: %u
def host_dns_name(self):
"""return the DNS name of this host"""
res = self.search(base='', scope=ldb.SCOPE_BASE, attrs=['dNSHostName'])
- return res[0]['dNSHostName'][0]
+ return str(res[0]['dNSHostName'][0])
def domain_dns_name(self):
"""return the DNS name of the domain root"""