Add unique exit status to the ipa-find* tools when nothing is found

This commit is contained in:
Rob Crittenden committed 2007-10-16 12:19:43 -04:00
1 parent ed8f506b0f
commit 91ab2d3893
4 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ def main():
groups = groups[1:]
if counter == 0:
print "No entries found for", args[1]
return 0
return 2
for ent in groups:
attr = ent.attrList()
+1 -1
View File
@@ -85,7 +85,7 @@ def main():
users = users[1:]
if counter == 0:
print "No entries found for", args[1]
return 0
return 2
for ent in users:
attr = ent.attrList()
+5 -1
View File
@@ -31,4 +31,8 @@ The search is a substring search in the name and description attributes.
All entries that match are displayed.
.SH "EXIT STATUS"
The exit status is 0 on success, nonzero on error.
0 if one or more entries were found
1 if an error occurred
2 if no matching entries were found
+5 -1
View File
@@ -37,4 +37,8 @@ Display all attributes
.PP
By default the full name, home Directory and login shell and username fields are displayed.
.SH "EXIT STATUS"
The exit status is 0 on success, nonzero on error.
0 if one or more entries were found
1 if an error occurred
2 if no matching entries were found