From 0b53ae4cda6034d9198a62d09ecdf6ce4cabb7e1 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Jun 20 2016 14:39:12 +0000 Subject: 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 --- diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 672f557..d483c11 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: