Univention Bugzilla – Bug 40737
udm remove is missing --ignore_not_exists
Last modified: 2017-07-05 13:31:56 CEST
udm remove is missing --ignore_not_exists. Otherwise in unjoinscripts we cannot really use "|| die".
I would have find it helpful to have this during the Upgrade to UCS 4.2.
I added that option. ucs-test (7.0.22-16): r80821 | Bug #40737: add udm remove --ignore_not_exists univention-directory-manager-modules (12.0.17-56): r80821 | Bug #40737: add udm remove --ignore_not_exists univention-directory-manager-modules.yaml: r80822 | YAML Bug #40737
# udm users/user remove --ignore_not_exists E: dn or filter needed # udm users/user remove --ignore_not_exists --dn uid=asdfasdfasdfasdfasdfa,dc=school,dc=local Object not found: uid=asdfasdfasdfasdfasdfa,dc=school,dc=local # echo $? 0 # udm users/user remove --ignore_not_exists --filter uid=asdfasdfasdfasdfasdfa Object not found: uid=asdfasdfasdfasdfasdfa # udm users/user remove --dn uid=asdfasdfasdfasdfasdfa,dc=school,dc=local E: object not found # echo $? 3
OK remove operation does not fail when --ingore_not_exists is used and dn or filter is specified. YAML: OK -> verified
<http://errata.software-univention.de/ucs/4.2/79.html>