mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Convert pattern
to string, fixes saltstack#21051
This commit is contained in:
parent
f7532697a0
commit
f3014b5b33
1 changed files with 1 additions and 1 deletions
|
@ -1183,7 +1183,7 @@ def replace(path,
|
|||
raise SaltInvocationError('Choose between append or prepend_if_not_found')
|
||||
|
||||
flags_num = _get_flags(flags)
|
||||
cpattern = re.compile(pattern, flags_num)
|
||||
cpattern = re.compile(str(pattern), flags_num)
|
||||
if bufsize == 'file':
|
||||
bufsize = os.path.getsize(path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue