Add missing 'fnmatch' import

This commit is contained in:
Baiju Muthukadan 2012-05-03 14:10:08 +05:30
parent 653bb28e9a
commit e1c3dfb881

View File

@ -15,6 +15,7 @@ import time
import hashlib
import sys
import stat
import fnmatch
# Import salt libs
import salt.utils.find
@ -552,7 +553,7 @@ def contains_glob(path, glob):
try:
with open(path, 'r') as fp_:
data = fp_.read()
if fnmatch(data, glob):
if fnmatch.fnmatch(data, glob):
return True
else:
return False