Use fnmatch from oslo.utils

Standard library fnmatch in Python versions <= 2.7.9 has thread safe
issue[1], we can use thread safe version from oslo.utils.

[1]https://bugs.python.org/issue23191

Change-Id: I42e9deed338ef6a9a75bb84fa9efd1aaf2baeccd
This commit is contained in:
ChangBo Guo(gcb) 2016-09-26 13:22:23 +08:00
parent 8b277fd7d8
commit 5e333fc0f8

View File

@ -14,7 +14,7 @@
# under the License.
""" Utility module for EMC Unity Manila Driver """
import fnmatch
from oslo_utils import fnmatch
def do_match(full, matcher_list):