Added touch on not found objects
Benjamin Renard

Benjamin Renard commited on 2013-05-26 11:54:46
Showing 1 changed files, with 5 additions and 0 deletions.

... ...
@@ -324,6 +324,11 @@ for obj in LdapObjects[options.provider]:
324 324
 		else:
325 325
 			logging.debug('Obj %s : not found on %s' % (obj,srv))
326 326
 			not_found[srv].append(obj)
327
+			if options.touch:
328
+				orig_value=[]
329
+				if options.touch in LdapObjects[options.provider][obj]:
330
+					orig_value=LdapObjects[options.provider][obj][options.touch]
331
+				LdapServers[options.provider].touch_object(obj,options.touch,orig_value)
327 332
 
328 333
 for obj in LdapObjects[options.consumer]:
329 334
 	logging.debug('Check obj %s of consumer' % obj)
330 335