mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
frontend: do not ignore client-side output params
Do not ignore output params defined in client-side overrides. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
parent
0f578ec36c
commit
e4ec4796a3
@ -43,7 +43,10 @@ class CommandOverride(Command):
|
|||||||
yield option
|
yield option
|
||||||
|
|
||||||
def get_output_params(self):
|
def get_output_params(self):
|
||||||
return self.next.output_params()
|
for output_param in self.next.output_params():
|
||||||
|
yield output_param
|
||||||
|
for output_param in super(CommandOverride, self).get_output_params():
|
||||||
|
yield output_param
|
||||||
|
|
||||||
def _iter_output(self):
|
def _iter_output(self):
|
||||||
return self.next.output()
|
return self.next.output()
|
||||||
@ -61,3 +64,11 @@ class MethodOverride(CommandOverride, Method):
|
|||||||
@property
|
@property
|
||||||
def obj(self):
|
def obj(self):
|
||||||
return self.next.obj
|
return self.next.obj
|
||||||
|
|
||||||
|
def get_output_params(self):
|
||||||
|
seen = set()
|
||||||
|
for output_param in super(MethodOverride, self).get_output_params():
|
||||||
|
if output_param.name in seen:
|
||||||
|
continue
|
||||||
|
seen.add(output_param.name)
|
||||||
|
yield output_param
|
||||||
|
Loading…
Reference in New Issue
Block a user