From 38c0684a6be97fd1cb74e7bb1e426e1d6a525d65 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Thu, 21 Apr 2016 12:22:04 +0800 Subject: [PATCH] use thread safe fnmatch fnmatch is not thread safe in python <2.7.10, let's use the safe one in oslo.utils Change-Id: I489271f8fca94b1a1cb3ad30790042fe7468338c ref: https://hg.python.org/cpython/rev/fe12c34c39eb --- heatclient/common/hook_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heatclient/common/hook_utils.py b/heatclient/common/hook_utils.py index c877f238..0dfe63e1 100644 --- a/heatclient/common/hook_utils.py +++ b/heatclient/common/hook_utils.py @@ -10,9 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -import fnmatch import logging +from oslo_utils import fnmatch + import heatclient.exc as exc from heatclient.openstack.common._i18n import _