From 51b266786de4d44ae6e7b323b1d65a81cb064eb7 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Thu, 21 Apr 2016 11:38:47 +0800 Subject: [PATCH] use thread safe fnmatch aodh listener is a multi-thread scenario, but fnmatch is not thread safe in python <2.7.10, let's use thread safe implementation in oslo.utils.fnmatch. Change-Id: I49af83ea1a7c43ae4962ecc70c173e8752199e38 ref: https://hg.python.org/cpython/rev/fe12c34c39eb --- aodh/evaluator/event.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aodh/evaluator/event.py b/aodh/evaluator/event.py index 54e34b7a9..9e1fac3c4 100644 --- a/aodh/evaluator/event.py +++ b/aodh/evaluator/event.py @@ -13,11 +13,11 @@ # License for the specific language governing permissions and limitations # under the License. -import fnmatch import operator from oslo_config import cfg from oslo_log import log +from oslo_utils import fnmatch from oslo_utils import timeutils import six diff --git a/requirements.txt b/requirements.txt index e5bba1d70..32877b258 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ pecan>=0.8.0 oslo.messaging>2.6.1,!=2.8.0 # Apache-2.0 oslo.middleware>=3.0.0 # Apache-2.0 oslo.serialization>=1.4.0 # Apache-2.0 -oslo.utils>=1.9.0 # Apache-2.0 +oslo.utils>=3.5.0 # Apache-2.0 python-ceilometerclient>=1.5.0 python-keystoneclient>=1.6.0 pytz>=2013.6