mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29348 from jtand/file_search_fix
Fixes an file.search on python2.6
This commit is contained in:
commit
760a521603
1 changed files with 1 additions and 1 deletions
|
@ -1434,7 +1434,7 @@ def replace(path,
|
|||
r_data = mmap.mmap(r_file.fileno(),
|
||||
0,
|
||||
access=mmap.ACCESS_READ)
|
||||
except ValueError:
|
||||
except (ValueError, mmap.error):
|
||||
# size of file in /proc is 0, but contains data
|
||||
r_data = "".join(r_file)
|
||||
if search_only:
|
||||
|
|
Loading…
Add table
Reference in a new issue