Open s3lph opened 1 year ago
Hi @s3lph Thanks for your report. This seams indeed wrong.
Do you know if there are any other objects below cn=examusers,ou=demoschool,dc=example,dc=org
?
This was a fresh UCS@school installation, so the cn=examusers
container SHOULD have been empty, as the exam users are created and deleted on demand when an exam is scheduled.
Description
Consider the following Ansible task:
This should perform tasks equivalent to
udm container/cn remove --dn cn=examusers,ou=demoschool,dc=example,dc=org
Expected behavior
Assuming the container/cn object exited, I'd expect something like this:
Assuming the container did NOT exist, I'd expect something like this:
Actual behavior
The exact opposite of what you'd expect happens: If the container exists, nothing is changed:
And if the container did not exist, the module claims it has deleted it (even though it hasn't been there in the first place):
This renders the UDM Ansible module unusable for deleting objects by their DN. Deleting objects identified by a
filter
expression works though. Unfortunately, in this case (where we have a lot of schools, and each school has anexamusers
container), those containers can't be distinguished using thefilter
argument.Environment
Controller:
Target node: