lockutils is a silent noop when called as a module

Bug #1386734 reported by Ben Nemec on 2014-10-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ben Nemec

Bug Description

In incubator, lockutils was a callable module that was used to wrap unit tests that needed a lock_path set. This was changed to be a console script entry point in the library, but if a project continues calling lockutils directly it will silently do nothing, which led to issues such as the one mentioned in https://review.openstack.org/#/c/131416/

We need to raise an exception when lockutils is called directly so that this can't happen anymore.

Ben Nemec (bnemec) on 2014-10-28
Changed in oslo.concurrency:
assignee: nobody → Ben Nemec (bnemec)
status: New → Triaged
importance: Undecided → High
Ben Nemec (bnemec) wrote :
Changed in oslo.concurrency:
milestone: none → next-kilo
status: Triaged → Fix Committed
Ben Nemec (bnemec) on 2014-12-02
Changed in oslo.concurrency:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers