summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2022-08-17 17:58:50 +1200
committerDouglas Bagnall <dbagnall@samba.org>2022-09-06 21:12:36 +0000
commit1ae4738a8ca0bdd22f1766bd39876456f7cba389 (patch)
tree8489a6a5cd5bd5673b2a293e0e44283fc5a93834 /python
parent47684f5739b253ea55b28bbfeb07c63dd62bd6f2 (diff)
downloadsamba-1ae4738a8ca0bdd22f1766bd39876456f7cba389.tar.gz
samba-1ae4738a8ca0bdd22f1766bd39876456f7cba389.tar.bz2
samba-1ae4738a8ca0bdd22f1766bd39876456f7cba389.zip
samba-tool dns: RECORD_DOES_NOT_EXIST errors as CommandErrors
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/dns.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py
index 45d31c83f3d..137e52acfd5 100644
--- a/python/samba/netcmd/dns.py
+++ b/python/samba/netcmd/dns.py
@@ -64,6 +64,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',
+ werror.WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST: 'The record does not exist',
}
def __init__(self, server, lp, creds):