Pavel Zůna wrote:
This patch fixes Command.output_for_cli for the env plugin. Before we
assumed, that a list/tuple is always a list of entries and a dict is
always an entry.
Still, this solution isn't perfect. I think, that in the future, we
should allow Output subclasses to control the way we output values
instead of doing type-based output in Command.output_for_cli.
Pavel
Before anyone asks... :)
I also changed the default value of the print_all argument in
textui.print_entry from False to True. It think it makes more sense this
way, because:
1) if order is None, it will still print something
2) if order is not None, it will print what's in order first and then
the rest
3) commands that care about the print_all argument have to set it in any
case, those that don't care usually want to print everything
Pavel
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel