mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30282 from cachedout/fix_30156
Fix file.append logic
This commit is contained in:
commit
8438d19815
1 changed files with 3 additions and 3 deletions
|
@ -3283,12 +3283,12 @@ def append(name,
|
|||
|
||||
try:
|
||||
for chunk in text:
|
||||
|
||||
if ignore_whitespace and __salt__['file.search'](
|
||||
if ignore_whitespace:
|
||||
if __salt__['file.search'](
|
||||
name,
|
||||
salt.utils.build_whitespace_split_regex(chunk),
|
||||
multiline=True):
|
||||
continue
|
||||
continue
|
||||
elif __salt__['file.search'](
|
||||
name,
|
||||
chunk,
|
||||
|
|
Loading…
Add table
Reference in a new issue