Univention Bugzilla – Attachment 9712 Details for
Bug 43426
TypeError: expected string or buffer in nagios listener module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
43426.patch (text/plain), 576 bytes, created by
Jürn Brodersen
on 2018-10-25 12:58:47 CEST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2018-10-25 12:58:47 CEST
Size:
576 bytes
patch
obsolete
>diff --git a/nagios/univention-nagios/nagios-server.py b/nagios/univention-nagios/nagios-server.py >index 29a86558d2..8d00bef6bf 100644 >--- a/nagios/univention-nagios/nagios-server.py >+++ b/nagios/univention-nagios/nagios-server.py >@@ -593,7 +593,7 @@ def handleHost(dn, new, old): > grpname = 'AllHosts' > ldapbase = listener.baseConfig['ldap/base'] > result = re.search('^cn=%s(,.*?)?,%s$' % (host, ldapbase), dn) >- if result: >+ if result and result.group(1): > grpname = re.sub(',\w+=', '_', result.group(1))[1:] > > # fqdn changed ==> remove old entry and create new ones
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43426
: 9712