[openstack-dev] Top Gate Bugs

Russell Bryant rbryant at redhat.com
Wed Nov 20 17:32:37 UTC 2013


On 11/20/2013 12:21 PM, Alex Gaynor wrote:
> Nope, you're totally right, corolocal.local is a class, whose instances
> are the actual coroutine local storage.

But I don't think his example is what is being used.

Here is an example using the openstack.common.local module, which is
what nova uses for this.  This produces the expected output.

http://paste.openstack.org/show/53687/

https://git.openstack.org/cgit/openstack/nova/tree/nova/openstack/common/local.py

For reference, original example from OP:
http://paste.openstack.org/show/53686/

-- 
Russell Bryant



More information about the OpenStack-dev mailing list