mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
misc: skip count
and total
output in env.output_for_cli
Do not include the `count` and `total` output values in CLI output in env.output_for_cli by default. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
parent
234270dc75
commit
5382864909
@ -11,6 +11,9 @@ register = Registry()
|
|||||||
@register(override=True)
|
@register(override=True)
|
||||||
class env(CommandOverride):
|
class env(CommandOverride):
|
||||||
def output_for_cli(self, textui, output, *args, **options):
|
def output_for_cli(self, textui, output, *args, **options):
|
||||||
|
output = dict(output)
|
||||||
|
output.pop('count', None)
|
||||||
|
output.pop('total', None)
|
||||||
options['all'] = True
|
options['all'] = True
|
||||||
return super(env, self).output_for_cli(textui, output,
|
return super(env, self).output_for_cli(textui, output,
|
||||||
*args, **options)
|
*args, **options)
|
||||||
|
Loading…
Reference in New Issue
Block a user