1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

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>
This commit is contained in:
Douglas Bagnall 2022-08-17 17:58:50 +12:00 committed by Douglas Bagnall
parent 47684f5739
commit 1ae4738a8c

View File

@ -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):