[Freeipa-devel] [PATCH] 0133 Use standard_list_of_entries for trust-resolve

Sumit Bose sbose at redhat.com
Wed Jan 15 17:33:22 UTC 2014


On Wed, Jan 15, 2014 at 07:24:00PM +0200, Alexander Bokovoy wrote:
> On Wed, 15 Jan 2014, Alexander Bokovoy wrote:
> >Hi!
> >
> >When looking into https://fedorahosted.org/freeipa/ticket/4113, I
> >decided to use output.standard_list_of_entries instead of a locally
> >defined list of entries. This solves the problem with wrong exit code in
> >CLI when non-resolvable SID is given, but only for a single SID. If
> >multiple SID specified and some of them were not resolved, the exit code
> >will still be 0 (success) but truncated flag will be set. This
> >corresponds to the framework behavior in other cases.
> Thanks to Sumit, here is updated patch because I forgot to run makeapi
> ;(
> 
> :)

Currently I see:

[sbose at ipa18-devel freeipa]$ ipa trust-resolve --sids sdfasdf
-------------------------------
Resolved 0 security identifiers
-------------------------------
----------------------------
Number of entries returned 0
----------------------------
[sbose at ipa18-devel freeipa]$ echo $?
1

Would it be possible to return only one of the summaries to the user?
Otherwise the patch works as expected and the output is better than the
empty one before.

bye,
Sumit
> 
> -- 
> / Alexander Bokovoy




More information about the Freeipa-devel mailing list