[Freeipa-devel] [PATCH] #319 better cope with ntp config files

Simo Sorce ssorce at redhat.com
Fri Oct 15 15:29:08 UTC 2010


On Fri, 15 Oct 2010 10:27:59 -0400
Simo Sorce <ssorce at redhat.com> wrote:

> Right, thanks for catching this, my python got a bit rusty in the last
> few months :)

Ok, changed the patch according to your guidelines, and retested.
Also caught a bug that didn't show up with the previous way I did
stripping.

> > I'm not sure your loop for srv actually does the right thing. I
> > wonder if you wanted to set match = 0 within the for loop.  
> 
> Well, according to my testing it does.
> But I'll re-check.

Re-checked, yes the way I use match is how I intended it, it is useful
only for the inner for loop.

Testing shows I can correctly match entries with arbitrary spacing now.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntpdinstance-Do-not-replace-the-config-files-just-ad.patch
Type: text/x-patch
Size: 8161 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101015/fc13f201/attachment.bin>


More information about the Freeipa-devel mailing list