mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fixup note lint in file.replace state mod
This commit is contained in:
parent
332535f2e6
commit
662e723ae0
1 changed files with 6 additions and 3 deletions
|
@ -2489,10 +2489,13 @@ def replace(name,
|
|||
# <...snip...>
|
||||
- pattern: |
|
||||
CentOS \(2.6.32[^\n]+\n\s+root[^\n]+\n\)+
|
||||
'''
|
||||
|
||||
.. note::
|
||||
When using YAML multiline string syntax in ```pattern:```, make sure to also use that syntax in the ```repl:``` part, or you might loose line feeds.
|
||||
'''
|
||||
|
||||
When using YAML multiline string syntax in ``pattern:``, make sure to
|
||||
also use that syntax in the ``repl:`` part, or you might loose line
|
||||
feeds.
|
||||
'''
|
||||
name = os.path.expanduser(name)
|
||||
|
||||
ret = {'name': name, 'changes': {}, 'result': True, 'comment': ''}
|
||||
|
|
Loading…
Add table
Reference in a new issue