[Freeipa-devel] [PATCH] 387 Fix validation of ipa-restore options

Jan Cholasta jcholast at redhat.com
Tue Jan 13 17:02:25 UTC 2015


Dne 13.1.2015 v 17:45 Jan Cholasta napsal(a):
> Dne 13.1.2015 v 16:37 Petr Vobornik napsal(a):
>> On 01/13/2015 02:26 PM, Jan Cholasta wrote:
>>> Dne 13.1.2015 v 13:01 Petr Vobornik napsal(a):
>>>> On 01/12/2015 02:28 PM, Jan Cholasta wrote:
>>>>> Hi,
>>>>>
>>>>> the attached patch fixes
>>>>> <https://fedorahosted.org/freeipa/ticket/4797>.
>>>>>
>>>>> Note that --data with data-only backup and --logs-only with data-only
>>>>> restore are deliberately ignored and considered no-op.
>>>>>
>>>>> Honza
>>>>>
>>
>>>>
>>>> 3. When #2 fixed, data backup with --no-logs doesn't raise warning as
>>>> requested in ticket.
>>>
>>> IMO such a warning does not make sense. You request no logs, you get no
>>> logs, I don't see anything worth warning about here.
>>
>> ok, makes sense
>>
>>>
>>>>
>>>> 5. Nitpick: imho option validation should be done before temp dir
>>>> creation.
>>>
>>> Fixed.
>>
>> You've also moved
>>    self.header = os.path.join(self.backup_dir, 'header')
>> below
>>    self.read_header()
>>
>> --> restore fails everytime
>
> Silly me. Sorry. Fixed.
>
> Rebased updated patch attached.

Rebased again, patch attached.

-- 
Jan Cholasta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-jcholast-387.3-Fix-validation-of-ipa-restore-options.patch
Type: text/x-patch
Size: 13500 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150113/5e4768e5/attachment.bin>


More information about the Freeipa-devel mailing list