diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2022-08-17 17:58:03 +1200 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2022-09-06 21:12:36 +0000 |
| commit | 47684f5739b253ea55b28bbfeb07c63dd62bd6f2 (patch) | |
| tree | 6279cc7785d9bb1f8721c1ffda3cb07d100f7827 /python/samba | |
| parent | 9e774fc14ace6f27f479511b7c780aa4e8941159 (diff) | |
| download | samba-47684f5739b253ea55b28bbfeb07c63dd62bd6f2.tar.gz samba-47684f5739b253ea55b28bbfeb07c63dd62bd6f2.tar.bz2 samba-47684f5739b253ea55b28bbfeb07c63dd62bd6f2.zip | |
samba-tool dns: catch ZONE_ALREADY_EXISTS 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.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |
