diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index 82b8ec5279c..69821e2e556 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -716,7 +716,7 @@ if 'SOCKET_WRAPPER_DIR' not in os.environ: try: file = open(dns_update_list, "r") except OSError as e: - if opts.update_cache: + if opts.update_list: print("The specified update list does not exist") else: print("The server update list was not found, "