Univention Bugzilla – Bug 44123
udm-cli should return EXIT_FAILURE on errors
Last modified: 2022-08-26 15:17:37 CEST
udm-cli create does not exit with an exit code != 0 in all cases: # udm dns/host_record create --superordinate "zoneName=$(ucr get domainname),cn=dns,$(ucr get ldap/base)" --set name=host --append a=10.201.17.1 --append a=10.201.17.2 --append a=2001:4dd0:dd00:8c42:ff17:0011:2233 --set mx="10 $(hostname -f)" --append txt=Test1 --append txt="Text 2" --set foo=bar ; echo $? WARNING: No attribute with name 'foo' in this module, value not set. E: Invalid Syntax: a: Not a valid IP address! Object created: relativeDomainName=host,zoneName=pt42.intranet,cn=dns,dc=pt42,dc=intranet 0
# udm dns/host_record create --superordinate "zoneName=$(ucr get domainname),cn=dns,$(ucr get ldap/base)" --set name=host --append a=10.201.17.1 --append a=10.201.17.2 --append a=2001:4dd0:dd00:8c42:ff17:0011:2233 --set mx="10 $(hostname -f)" --append txt=Test1 --append txt="Text 2" --set foo=bar ; echo $? WARNING: No attribute with name 'foo' in this module, value not set. E: Invalid Syntax: a: Not a valid IP address! 3