[Freeipa-devel] [PATCH] 1074 limit service list

Rob Crittenden rcritten at redhat.com
Wed Dec 5 02:32:06 UTC 2012


Simo Sorce wrote:
> On Tue, 2012-12-04 at 15:56 -0500, Rob Crittenden wrote:
>> Simo Sorce wrote:
>>> On Tue, 2012-12-04 at 15:14 -0500, Rob Crittenden wrote:
>>>> Simo Sorce wrote:
>>>>> On Tue, 2012-12-04 at 14:03 -0500, Rob Crittenden wrote:
>>>>>> Only touch the service list in the server installer and ipactl.
>>>>>
>>>>> Nack, comments inline.
>>>>>
>>> [..]
>>>>> This break the fallback we have in ipa_stop()
>>>>> We expect an exception or a non empty list there.
>>>>
>>>> Ok, I can move the handling so ipactl ignores the exception.
>>>
>>> Is the problem that we are printing an error to stdout/stderr ?
>>> Or do you actually want to change behavior somehow ?
>>
>> We need to change the behavior.
>>
>> If you run: ipactl stop
>>
>> then: ipactl status
>>
>> you get a backtrace because the service list doesn't exist.
>
> Ok, what about defining our own exception and then simply pass on it
> except for the stop() case that treats it differently ?

I think checking for file existence is probably going to hit the 
majority of the cases. Using a separate exception is probably overkill.

rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-1074-2-service-list.patch
Type: text/x-patch
Size: 4832 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121204/34e3f2c2/attachment.bin>


More information about the Freeipa-devel mailing list