Univention Bugzilla – Bug 23639
Traceback /usr/lib/univention-directory-policy/nfsmounts: policy and result undefined
Last modified: 2012-07-20 15:25:35 CEST
Created attachment 3535 [details] Rewrite for UCS-3.0 /usr/lib/univention-directory-policy/nfsmounts: > def query_policy(dn): > exit(result, "FAIL: failed to execute `%s'" % policy) Neither "result" nor "policy" are defined in that function. result is only globally defined as the result of lo.search_s() as a two-dimensional array, which is passed to sys.exit(), which expects an INTEGER!
Wie von Philip vorgeschlagen, habe ich eine Zeile geändert in der aktuell gültigen Fassung von univention-directory-policy/nfsmounts.py: - exit(result, "FAIL: failed to execute `%s'" % policy) + exit(1, "FAIL: failed to execute `univention_policy_result %s'" % dn) Das Paket univention-base-files habe ich gebaut und testweise installieren lasen. Die Änderung war am Ziel vorhanden.
query_policy ist korrigiert und fängt Fehler des subprocess.Popen(['univention_policy_result nun ordentlich ab. Changelog Eintrag vorhanden.
UCS 3.0-2 has been released: http://forum.univention.de/viewtopic.php?f=54&t=1905 If this error occurs again, please use "Clone This Bug".