[Freeipa-devel] [PATCH] 229 standardized return values
Rob Crittenden
rcritten at redhat.com
Tue Jun 9 19:29:14 UTC 2009
We need to return somewhat standardized return values so that scripters
can tell when something has gone wrong. Up to now it would return a
mashup of the errno code set in the exception but this doesn't easily
translate into a 0-255 values supported by the shell.
The default value is 1 which means "general failure." A return value of
2 is for not found. 0 means success.
This also fixes a long-standing bug with *-find where it would return a
0 if no entries were found. Once the new LDAP backend is integrated and
we call the select_entry() method then it will return NotFound() if no
matching values were found.
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-229-exit.patch
Type: application/mbox
Size: 2959 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090609/80139596/attachment.mbox>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20090609/80139596/attachment.bin>
More information about the Freeipa-devel
mailing list