View | Details | Raw Unified | Return to bug 25409
Collapse All | Expand All

(-)umc/python/udm/__init__.py (-1 / +2 lines)
Lines 414-423 Link Here
414
			result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate )
414
			result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate )
415
415
416
			entries = []
416
			entries = []
417
			object_type = request.options.get( 'objectType', request.flavor )
417
			for obj in result:
418
			for obj in result:
418
				if obj is None:
419
				if obj is None:
419
					continue
420
					continue
420
				module = get_module( request.flavor, obj.dn )
421
				module = get_module( object_type, obj.dn )
421
				if module is None:
422
				if module is None:
422
					MODULE.warn( 'Could not identify LDAP object %s (flavor: %s). The object is ignored.' % ( obj.dn, request.flavor ) )
423
					MODULE.warn( 'Could not identify LDAP object %s (flavor: %s). The object is ignored.' % ( obj.dn, request.flavor ) )
423
					continue
424
					continue

Return to bug 25409