mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
samba_dnsupdate: make it clear that opts.use_file is active and we're not using nsupdate
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2f2da0966b
commit
767e60d973
@ -443,10 +443,10 @@ def call_nsupdate(d, op="add"):
|
||||
|
||||
assert(op in ["add", "delete"])
|
||||
|
||||
if opts.verbose:
|
||||
print("Calling nsupdate for %s (%s)" % (d, op))
|
||||
|
||||
if opts.use_file is not None:
|
||||
if opts.verbose:
|
||||
print("Use File instead of nsupdate for %s (%s)" % (d, op))
|
||||
|
||||
try:
|
||||
rfile = open(opts.use_file, 'r+')
|
||||
except IOError:
|
||||
@ -471,6 +471,9 @@ def call_nsupdate(d, op="add"):
|
||||
fcntl.lockf(rfile, fcntl.LOCK_UN)
|
||||
return
|
||||
|
||||
if opts.verbose:
|
||||
print("Calling nsupdate for %s (%s)" % (d, op))
|
||||
|
||||
normalised_name = d.name.rstrip('.') + '.'
|
||||
|
||||
(tmp_fd, tmpfile) = tempfile.mkstemp()
|
||||
|
Loading…
Reference in New Issue
Block a user