]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool dns: catch ZONE_ALREADY_EXISTS errors as CommandErrors
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 17 Aug 2022 05:58:03 +0000 (17:58 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 6 Sep 2022 21:12:36 +0000 (21:12 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/dns.py

index 2e0b305b17048cefaf54b88b3ff33fa1326e0a99..45d31c83f3d772b417105aefef39677cc08db765 100644 (file)
@@ -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):