[openstack-dev] [oslo] trying to understand CORS deprecation

Sean Dague sean at dague.net
Mon Jul 24 16:43:18 UTC 2017


I'm trying to knock out common deprecation messages which are generating
noise in the test runs. There is a deprecation message emitted all the
time during test runs in Nova which is:

DeprecationWarning: Method 'CORS.set_latent()' has moved to
'method.set_defaults()': CORS.set_latent has been deprecated in favor of
oslo_middleware.cors.set_defaults"

But from what I can see it's primary caller is the cors middleware
itself -
https://github.com/openstack/oslo.middleware/blob/1cf39ee5c3739c18fed78946532438550f56356f/oslo_middleware/cors.py#L133-L137


At least I'm having a hard time finding anyone else in this stack
calling set_latent. Is this just a circular bug on the cors.py module?

	-Sean

-- 
Sean Dague
http://dague.net



More information about the OpenStack-dev mailing list