Make callbacks required for enforcement

Bug #1790954 reported by Lance Bragstad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.limit
Fix Released
Medium
Unassigned

Bug Description

Currently, the Enforcer objects can be instantiated with optional callbacks [0], although it doesn't really make sense to never supply a callback.

If the purpose of oslo.limit is to calculate usage and enforce it against a limit, the callback will always be required. We should remove this as an optional parameter.

[0] https://github.com/openstack/oslo.limit/blob/master/oslo_limit/limit.py#L56

description: updated
summary: - Make callbacks a required for enforcement
+ Make callbacks required for enforcement
Changed in oslo.limit:
status: New → Triaged
importance: Undecided → Medium
Changed in oslo.limit:
assignee: nobody → Vishakha Agarwal (vishakha.agarwal)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.limit (master)

Fix proposed to branch: master
Review: https://review.openstack.org/604795

Changed in oslo.limit:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.limit (master)

Change abandoned by Vishakha Agarwal (<email address hidden>) on branch: master
Review: https://review.openstack.org/604795
Reason: The bug is already Fixed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by wangxiyuan (<email address hidden>) on branch: master
Review: https://review.opendev.org/600357

Revision history for this message
melanie witt (melwitt) wrote :

This was fixed by https://review.opendev.org/c/openstack/oslo.limit/+/665711 back in version 0.1.0.

Changed in oslo.limit:
assignee: Vishakha Agarwal (vishakha.agarwal) → nobody
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.