summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2022-08-17 17:57:16 +1200
committerDouglas Bagnall <dbagnall@samba.org>2022-09-06 21:12:36 +0000
commit9e774fc14ace6f27f479511b7c780aa4e8941159 (patch)
tree2652f9c0ecb54efb4feddf4962dbd4fe00156a2b /python/samba
parente931104d1d9476c63b32dea58e45889b1af642e6 (diff)
downloadsamba-9e774fc14ace6f27f479511b7c780aa4e8941159.tar.gz
samba-9e774fc14ace6f27f479511b7c780aa4e8941159.tar.bz2
samba-9e774fc14ace6f27f479511b7c780aa4e8941159.zip
samba-tool dns: catch DS_UNAVAILABLE errors as CommandErrors
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/netcmd/dns.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py
index 0df23d6f4ed..2e0b305b170 100644
--- a/python/samba/netcmd/dns.py
+++ b/python/samba/netcmd/dns.py
@@ -62,6 +62,7 @@ class DnsConnWrapper:
"""
default_messages = {
+ werror.WERR_DNS_ERROR_DS_UNAVAILABLE: "Could not contact RPC server",
}
def __init__(self, server, lp, creds):