OpenStack library utils
Go to file
Ben Nemec 4eb61941f8 Avoid double-setting event
In commit cc8b51e1e1 we added a send
on the old event when clearing an EventletEvent. However, this was
done unconditionally, which means if the event was already sent
then we attempt to send it again. This fails with:

AssertionError: Trying to re-send() an already-triggered event.

Similar to 14a53c4d8a, we should check
if self._set is True and if so then we know that the event was
already sent and we don't need to do it again.

Change-Id: I660601383072d11e4a077aada8c1b8c30b9d8d1d
Closes-Bug: 1812922
2019-01-23 15:28:50 +00:00
doc Capitalize Oslo 2018-04-24 14:23:21 +00:00
oslo_utils Avoid double-setting event 2019-01-23 15:28:50 +00:00
releasenotes Update reno for stable/rocky 2018-07-26 12:40:33 +00:00
tools Avoid tox_install.sh for constraints support 2017-12-02 17:06:59 +00:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:23:20 -04:00
.gitignore Clean up .gitignore references to personal tools 2018-10-15 11:53:43 +08:00
.gitreview exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
.mailmap exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
.stestr.conf Switch to stestr 2018-07-04 08:28:15 +07:00
.zuul.yaml Use template for lower-constraints 2018-12-20 20:16:55 +01:00
CONTRIBUTING.rst Fix wrong bug tracking link 2015-11-16 23:17:37 +08:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 23:34:11 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
README.rst Add release notes link to README 2018-06-21 13:24:46 +08:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-06-18 20:45:08 -04:00
bindep.txt Add bindep.txt file to prevent fallback to generic list 2018-03-19 17:28:53 -05:00
lower-constraints.txt Fix race condition in eventletutils Event 2018-12-05 20:06:39 +13:00
requirements.txt Don't use monotonic on Python >=3.3 2018-12-05 16:28:41 +13:00
setup.cfg Update mailinglist from dev to discuss 2018-12-05 09:38:58 +08:00
setup.py Updated from global requirements 2017-03-03 00:03:24 +00:00
test-requirements.txt Fix race condition in eventletutils Event 2018-12-05 20:06:39 +13:00
tox.ini Switch to stestr 2018-07-04 08:28:15 +07:00

README.rst

Team and repository tags

image

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.