mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Add missing 'fnmatch' import
This commit is contained in:
parent
653bb28e9a
commit
e1c3dfb881
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user