From: Douglas Bagnall Date: Wed, 17 Aug 2022 05:58:03 +0000 (+1200) Subject: samba-tool dns: catch ZONE_ALREADY_EXISTS errors as CommandErrors X-Git-Tag: talloc-2.4.0~1172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47684f5739b253ea55b28bbfeb07c63dd62bd6f2;p=thirdparty%2Fsamba.git samba-tool dns: catch ZONE_ALREADY_EXISTS 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 2e0b305b170..45d31c83f3d 100644 --- a/python/samba/netcmd/dns.py +++ b/python/samba/netcmd/dns.py @@ -63,6 +63,7 @@ class DnsConnWrapper: default_messages = { werror.WERR_DNS_ERROR_DS_UNAVAILABLE: "Could not contact RPC server", + werror.WERR_DNS_ERROR_ZONE_ALREADY_EXISTS: 'Zone already exists', } def __init__(self, server, lp, creds):