[Freeipa-devel] [PATCH] 399 Include params in Method.output_params

Rob Crittenden rcritten at redhat.com
Fri Mar 5 21:12:10 UTC 2010


Method overrides the Command get_output_params() method and only returns 
the object params, not anything defined within the method itself. Return
those as well so they are displayed in output. Some care needs to be 
taken to avoid returning duplicate values. In the case of duplicates the 
value in obj.params wins.

I tested this with the pwpolicy plugin which is a Method and defines its 
own takes_options. I need this to display the priority to the user.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-399-output.patch
Type: application/mbox
Size: 1646 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100305/c5117def/attachment.mbox>


More information about the Freeipa-devel mailing list