mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use flags
when checking whether content was added previously
This commit is contained in:
parent
b25e609e9e
commit
6d6121a6e5
1 changed files with 2 additions and 1 deletions
|
@ -1452,7 +1452,8 @@ def replace(path,
|
|||
# Search for content, to avoid pre/appending the
|
||||
# content if it was pre/appended in a previous run.
|
||||
if re.search('^{0}$'.format(re.escape(content)),
|
||||
r_data):
|
||||
r_data,
|
||||
flags=flags_num):
|
||||
# Content was found, so set found.
|
||||
found = True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue