[Freeipa-devel] [PATCH] ipa trust-add command should be interactive

Gabe Alford redhatrises at gmail.com
Thu Jul 31 13:17:08 UTC 2014


Right. The reason I added it in there is that I could see that in the
future trust_type could be more than just 'ad' (maybe 'ipa', 'krb', etc?)
which at that point I'm not sure a default makes sense. So, I thought to go
ahead and add the check for future use cases so that it doesn't have to be
remembered later. However, maybe that was just a bad idea as right now it
is a pointless check?

Gabe


On Thu, Jul 31, 2014 at 3:18 AM, Alexander Bokovoy <abokovoy at redhat.com>
wrote:

> On Thu, 31 Jul 2014, Martin Kosek wrote:
>
>> Sorry for going late in the game, just a quick question - why do we want
>> to add
>> this part:
>>
>> +        if trust_type is None:
>> +            kw['trust_type'] = self.prompt_param(self.params[
>> 'trust_type'])
>>
>> ? I do not see a reason for adding a special interactive prompt callback
>> for
>> that - trust_type has a default value "ad". CCing Alexander to double
>> check.
>>
> I also don't understand why you need to ask interactively for the
> trust_type as it defaults to non-empty value and this value is the only
> one we currently support.
>
>
> --
> / Alexander Bokovoy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140731/11571def/attachment.htm>


More information about the Freeipa-devel mailing list