Closed fbim-genosr closed 1 year ago
You are right If the Object exists and no change has to be made, it should return no error but an ok with the informarion that nothing had to be done.
Thank you very much for your answer. Is there a workaround to handle that? I ended up using udm with the ansible command module, having the "--ignore_exists" option set.
I think that is already the right workaround for this issue.
IMHO is the problem here, that --ignore_exists will "eat" all potential errors as well, right?
I close the issue.
Integration test is added for this purpose.
test(univention_directory_manager): add more checks
Feel free to reopen or create a new issue if the error occurs again.
Hi all,
when adding an object that already exists, let's say a user, or an OU,
I get a trace back, telling me,
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: univention.udm.exceptions.CreateError: Error creating 'container/ou' object: Das Objekt existiert bereits. (ou=some,dc=thing,dc=some,dc=domain)
IMHO, the modules should be idempotent and just return "ok", in case an object already exists. Or am I mixing things up here?
Cheers Sebastian