summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-07 16:02:44 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-07 08:51:11 +0200
commit17fe5e0ca4fb46ffe344aa93e97d948ec82acf37 (patch)
tree5a9af0905855af094b381658ef6ec4c212681d78 /source4
parente78d4652fa7feade5fcae76fd84b60e204803b61 (diff)
downloadsamba-17fe5e0ca4fb46ffe344aa93e97d948ec82acf37.tar.gz
samba-17fe5e0ca4fb46ffe344aa93e97d948ec82acf37.tar.bz2
samba-17fe5e0ca4fb46ffe344aa93e97d948ec82acf37.zip
s4-samba_dnsupate Fix syntax error
This particular sub-part of the script isn't tested in 'make test' due to it making real changes to DNS. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 7 08:51:11 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4')
-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