Univention Bugzilla – Attachment 8666 Details for
Bug 44103
DNS zone sync_to_ucs fails due to unexpected uppercase DC attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
DC_case.patch
DC_case.patch (text/plain), 699 bytes, created by
Arvid Requate
on 2017-03-28 14:06:59 CEST
(
hide
)
Description:
DC_case.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2017-03-28 14:06:59 CEST
Size:
699 bytes
patch
obsolete
>Index: univention-s4-connector/modules/univention/s4connector/s4/dns.py >=================================================================== >--- univention-s4-connector/modules/univention/s4connector/s4/dns.py (Revision 77820) >+++ univention-s4-connector/modules/univention/s4connector/s4/dns.py (Arbeitskopie) >@@ -1499,7 +1502,11 @@ > > if object.get('attributes'): > oc = object['attributes'].get('objectClass') >- dc = object['attributes'].get('dc') >+ try: >+ dc = [value for key, value in object['attributes'].iteritems() if 'dc' == key.lower()][0] >+ except IndexError: >+ dc = None >+ > if oc and 'dnsZone' in oc: > # forward or reverse zone > if dc and dc[0].endswith('in-addr.arpa'):
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 44103
:
8663
| 8666