frontend: skip value output in output_for_cli

Do not include the `value` output value in CLI output in
Command.output_for_cli by default.

https://fedorahosted.org/freeipa/ticket/4739

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Jan Cholasta
2016-06-20 12:26:10 +02:00
parent f554078291
commit 0b53ae4cda

View File

@@ -1050,7 +1050,9 @@ class Command(HasParam):
continue
result = output[o]
if o.lower() == 'count' and result == 0:
if o == 'value':
continue
elif o.lower() == 'count' and result == 0:
rv = 1
elif o.lower() == 'failed':
if entry_count(result) == 0: