diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-20 12:26:10 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-20 16:39:12 +0200 |
commit | 0b53ae4cda6034d9198a62d09ecdf6ce4cabb7e1 (patch) | |
tree | 0a581d0b0be8d1d5e7e57aab41f49af0ef658dab | |
parent | f554078291d682d59956998af97f7d3066fbe7e7 (diff) | |
download | freeipa-0b53ae4cda6034d9198a62d09ecdf6ce4cabb7e1.tar.gz freeipa-0b53ae4cda6034d9198a62d09ecdf6ce4cabb7e1.tar.xz freeipa-0b53ae4cda6034d9198a62d09ecdf6ce4cabb7e1.zip |
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>
-rw-r--r-- | ipalib/frontend.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 672f5576b..d483c11de 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -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: |