summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2016-07-26 11:34:05 +1200
committerGarming Sam <garming@samba.org>2016-11-22 05:59:40 +0100
commitc1a316bea66541410612156e87ab142472518d4f (patch)
tree47be12dd46780621ff5fe230fa7b1a18f8f55f8e
parentf4d6e2ab7008c284084e4e804a86bd9090a42d63 (diff)
downloadsamba-c1a316bea66541410612156e87ab142472518d4f.tar.gz
samba_dnsupdate: Raise after the error count is incremented
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Tue Nov 22 05:59:40 CET 2016 on sn-devel-144
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index d18d8bd1f19..1633561e173 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -562,12 +562,12 @@ def call_samba_tool(d, op="add", zone=None):
if opts.verbose:
print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr))
except Exception, estr:
- raise
if opts.fail_immediately:
sys.exit(1)
error_count = error_count + 1
if opts.verbose:
print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr))
+ raise
def rodc_dns_update(d, t, op):
'''a single DNS update via the RODC netlogon call'''