Univention Bugzilla – Attachment 7787 Details for
Bug 41747
No schools are detected by school lib on DC backup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
41747.patch (text/plain), 700 bytes, created by
Florian Best
on 2016-07-07 16:11:23 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-07-07 16:11:23 CEST
Size:
700 bytes
patch
obsolete
>diff --git a/ucs-school-lib/python/models/school.py b/ucs-school-lib/python/models/school.py >index 7fa3eb0..5b24c2d 100644 >--- a/ucs-school-lib/python/models/school.py >+++ b/ucs-school-lib/python/models/school.py >@@ -443,7 +443,7 @@ class School(UCSSchoolHelperAbstractClass): > > @classmethod > def _filter_local_schools(cls, schools, lo): >- if ucr.get('server/role') == 'domaincontroller_master': >+ if ucr.get('server/role') in ('domaincontroller_master', 'domaincontroller_backup'): > return schools > return [school for school in schools if any(ucr.get('ldap/hostdn', '').lower() == x.lower() for x in school.get_administrative_server_names(lo) + school.get_educational_server_names(lo))] >
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 41747
: 7787