From: Douglas Bagnall Date: Wed, 17 Aug 2022 05:57:16 +0000 (+1200) Subject: samba-tool dns: catch DS_UNAVAILABLE errors as CommandErrors X-Git-Tag: talloc-2.4.0~1173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e774fc14ace6f27f479511b7c780aa4e8941159;p=thirdparty%2Fsamba.git samba-tool dns: catch DS_UNAVAILABLE errors as CommandErrors Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- 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):