From 47684f5739b253ea55b28bbfeb07c63dd62bd6f2 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 17 Aug 2022 17:58:03 +1200 Subject: [PATCH] samba-tool dns: catch ZONE_ALREADY_EXISTS errors as CommandErrors Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/netcmd/dns.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.47.3