mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add unique exit status to the ipa-find* tools when nothing is found
This commit is contained in:
parent
ed8f506b0f
commit
91ab2d3893
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user