mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38101 from lorengordon/file-replace-note
Clarifies file.replace behavior on symlinks
This commit is contained in:
commit
da8f5ac0c6
2 changed files with 4 additions and 2 deletions
|
@ -1857,7 +1857,8 @@ def replace(path,
|
|||
This is a pure Python implementation that wraps Python's :py:func:`~re.sub`.
|
||||
|
||||
path
|
||||
Filesystem path to the file to be edited
|
||||
Filesystem path to the file to be edited. If a symlink is specified, it
|
||||
will be resolved to its target.
|
||||
|
||||
pattern
|
||||
A regular expression, to be matched using Python's
|
||||
|
|
|
@ -3218,7 +3218,8 @@ def replace(name,
|
|||
.. versionadded:: 0.17.0
|
||||
|
||||
name
|
||||
Filesystem path to the file to be edited.
|
||||
Filesystem path to the file to be edited. If a symlink is specified, it
|
||||
will be resolved to its target.
|
||||
|
||||
pattern
|
||||
A regular expression, to be matched using Python's
|
||||
|
|
Loading…
Add table
Reference in a new issue