View | Details | Raw Unified | Return to bug 44103 | Differences between
and this patch

Collapse All | Expand All

(-)univention-s4-connector/modules/univention/s4connector/s4/dns.py (-1 / +5 lines)
 Lines 1499-1505    Link Here 
1499
1502
1500
	if object.get('attributes'):
1503
	if object.get('attributes'):
1501
		oc = object['attributes'].get('objectClass')
1504
		oc = object['attributes'].get('objectClass')
1502
		dc = object['attributes'].get('dc')
1505
		try:
1506
			dc = [value for key, value in object['attributes'].iteritems() if 'dc' == key.lower()][0]
1507
		except IndexError:
1508
			dc = None
1509
1503
		if oc and 'dnsZone' in oc:
1510
		if oc and 'dnsZone' in oc:
1504
			# forward or reverse zone
1511
			# forward or reverse zone
1505
			if dc and dc[0].endswith('in-addr.arpa'):
1512
			if dc and dc[0].endswith('in-addr.arpa'):

Return to bug 44103