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
This commit is contained in:
ZhiQiang Fan 2016-04-21 11:38:47 +08:00
parent adc15b1732
commit 51b266786d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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