Re: [Server-devel] minor xs-activation-httphandler bug

2009-10-27 Thread Martin Langhoff
On Fri, Oct 23, 2009 at 8:32 AM, Daniel Drake d...@laptop.org wrote:
 xs-activation-httphandler.py does:

        lease = myoat.get_lease(sn, 300)
        if lease is not None:
            myoat.mark_served_lease(sn)
            resp[lease] = lease

Duh! thanks for the report. Fixed, pushed out.



m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] minor xs-activation-httphandler bug

2009-10-23 Thread Daniel Drake
xs-activation-httphandler.py does:

lease = myoat.get_lease(sn, 300)
if lease is not None:
myoat.mark_served_lease(sn)
resp[lease] = lease

However, get_lease doesn't look like it will ever return None.
Instead, it returns False if there is no lease. So we get a response
with lease:false and the lease is marked as served for that SN.

Daniel
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel