summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/samba_dnsupdate
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin/samba_dnsupdate')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 695bed6e80..e86fba2983 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -259,20 +259,19 @@ def call_nsupdate(d):
f.write("send\n")
f.close()
+ global error_count
os.environ["KRB5CCNAME"] = ccachename
try:
cmd = nsupdate_cmd[:]
cmd.append(tmpfile)
ret = subprocess.call(cmd, shell=False)
if ret != 0:
- global error_count
if opts.fail_immediately:
sys.exit(1)
error_count = error_count + 1
if opts.verbose:
print("Failed nsupdate: %d" % ret)
except Exception, estr:
- global error_count
if opts.fail_immediately:
sys.exit(1)
error_count = error_count + 1