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

Daniel Drake dsd at laptop.org
Fri Oct 23 03:32:03 EDT 2009


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


More information about the Server-devel mailing list