Univention Bugzilla – Bug 45437
samba_dnsupdate: UnboundLocalError: local variable 'estr' referenced before assignment
Last modified: 2020-07-03 20:51:21 CEST
Failed 'samba-tool dns' based update: A DomainDnsZones.ayeq-benu.com 10.0.0.219 : local variable 'estr' referenced before assignment Traceback (most recent call last): File "/usr/sbin/samba_dnsupdate", line 881, in <module> call_samba_tool(d, zone=d.zone) File "/usr/sbin/samba_dnsupdate", line 600, in call_samba_tool print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr)) UnboundLocalError: local variable 'estr' referenced before assignment ===== ---8<--- 590 try: 591 cmd = cmd_dns() 592 if opts.verbose: 593 print "Calling samba-tool dns %s -k no -P %s" % (op, args) 594 ret = cmd._run("dns", op, "-k", "no", "-P", *args) 595 if ret == -1: 596 if opts.fail_immediately: 597 sys.exit(1) 598 error_count = error_count + 1 599 if opts.verbose: 600 print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr)) 601 except Exception, estr: 602 if opts.fail_immediately: 603 sys.exit(1) 604 error_count = error_count + 1 605 if opts.verbose: 606 print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr)) 607 raise --->8---
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.