mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 00:41:25 -06:00
Return non-zero when the number of entries from *-find returned is zero.
ticket 325
This commit is contained in:
parent
3d55b66e48
commit
53c218cf2f
@ -896,7 +896,9 @@ class Command(HasParam):
|
||||
continue
|
||||
result = output[o]
|
||||
|
||||
if o.lower() == 'failed':
|
||||
if o.lower() == 'count' and result == 0:
|
||||
rv = 1
|
||||
elif o.lower() == 'failed':
|
||||
if self.number_failed(result) == 0:
|
||||
# Don't display an empty failed list
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user