summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r--ipalib/frontend.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index c9c070def..5486a19a5 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -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