mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #39592 from skazi0/line-user-fix
Ensure user/group/file_mode after line edit
This commit is contained in:
commit
aee43f7fa4
1 changed files with 1 additions and 2 deletions
|
@ -3178,8 +3178,7 @@ def line(name, content, match=None, mode=None, location=None,
|
|||
if not name:
|
||||
return _error(ret, 'Must provide name to file.line')
|
||||
|
||||
if create and not os.path.isfile(name):
|
||||
managed(name, create=create, user=user, group=group, mode=file_mode)
|
||||
managed(name, create=create, user=user, group=group, mode=file_mode)
|
||||
|
||||
check_res, check_msg = _check_file(name)
|
||||
if not check_res:
|
||||
|
|
Loading…
Add table
Reference in a new issue