mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
28 lines
843 B
Python
28 lines
843 B
Python
#
|
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
|
#
|
|
|
|
from ipaclient.frontend import CommandOverride
|
|
from ipalib.plugable import Registry
|
|
|
|
register = Registry()
|
|
|
|
|
|
@register(override=True)
|
|
class env(CommandOverride):
|
|
def output_for_cli(self, textui, output, *args, **options):
|
|
output = dict(output)
|
|
output.pop('count', None)
|
|
output.pop('total', None)
|
|
options['all'] = True
|
|
return super(env, self).output_for_cli(textui, output,
|
|
*args, **options)
|
|
|
|
|
|
@register(override=True)
|
|
class plugins(CommandOverride):
|
|
def output_for_cli(self, textui, output, *args, **options):
|
|
options['all'] = True
|
|
return super(plugins, self).output_for_cli(textui, output,
|
|
*args, **options)
|