[Freeipa-devel] [PATCHES] 0014, 0016 [RFE] ipa migrate-ds should have an argument to specify cert to use for DS connection

Martin Basti mbasti at redhat.com
Thu Nov 21 16:14:57 UTC 2013


On Tue, 2013-11-19 at 10:32 +0100, Petr Viktorin wrote:
> On 10/21/2013 10:29 AM, Martin Basti wrote:
> > On Mon, 2013-10-21 at 09:29 +0200, Martin Kosek wrote:
> >> On 10/18/2013 05:00 PM, Martin Basti wrote:
> >> > Patch attached.
> >> >
> >> > Ticket:
> >> >https://fedorahosted.org/freeipa/ticket/3243
> >> >
> >>
> >> I did not test the patch, just looked at the code and I have few comments:
> >>
> >> 1) Please put the ipalib/cli.py change to a sepparate change, we may want to
> >> backport it separately some day and this will make it easier.
> >>
> > Separated.
> > Patch 0014-2 -- CLI
> 
> Nitpick: if you switched them around it would be easier to read*:
>      if raw:
>          decode
>      elif required:
>          raise
> *(at least for me, I need way too much concentration to process boolean 
> logic)
> 
Switched.
> 
> > Patch 0016 -- migration
> 
> We have a utility, ipautil.write_tmp_file, that should do what you need 
> here.
> With this the created file is removed some time later when there are no 
> more references to the file object, so no need for the try: block.
> (btw, if the try block was necessary, it should have also covered the 
> write() call.)
> 
Fixed

> Also, since you changed the API, please run ./makeapi and bump the API 
> version in the VERSION file.
Added

Thank you for review
Updated patches attached
-- 
Martin^2 Basti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbasti-0014-3-Changed-CLI-to-allow-to-use-FILE-as-optional-param.patch
Type: text/x-patch
Size: 1272 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20131121/f08e0309/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbasti-0016-2-migrate-ds-added-ca-cert-file-FILE-option.patch
Type: text/x-patch
Size: 4278 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20131121/f08e0309/attachment-0001.bin>


More information about the Freeipa-devel mailing list