← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1500509] [NEW] Define paste entrypoints

 

Public bug reported:

oslo.middleware middlewares should define the entry points for the
factories.

In setup.cfg:

[entry_points]
paste.filter_factory =
    request_id = oslo_middleware:RequestId.factory

(Or whatever you want to call the entrypoint)

Then we can use it in keystone instead of defining our own.

Here's how it's used in keystone:

[filter:request_id]
use = egg:keystone#request_id

So we'd change to "use = egg:oslo.incubator#request_id".

And then eventually we can remove the line from keystone-paste.ini.

** Affects: keystone
     Importance: Wishlist
         Status: New

** Affects: oslo.middleware
     Importance: Undecided
         Status: New

** Also affects: keystone
   Importance: Undecided
       Status: New

** Changed in: keystone
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1500509

Title:
  Define paste entrypoints

Status in Keystone:
  New
Status in oslo.middleware:
  New

Bug description:
  oslo.middleware middlewares should define the entry points for the
  factories.

  In setup.cfg:

  [entry_points]
  paste.filter_factory =
      request_id = oslo_middleware:RequestId.factory

  (Or whatever you want to call the entrypoint)

  Then we can use it in keystone instead of defining our own.

  Here's how it's used in keystone:

  [filter:request_id]
  use = egg:keystone#request_id

  So we'd change to "use = egg:oslo.incubator#request_id".

  And then eventually we can remove the line from keystone-paste.ini.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1500509/+subscriptions


Follow ups