mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30163 from rallytime/fix-28923
Add warning about using "=" in file.line function
This commit is contained in:
commit
83245930a6
1 changed files with 9 additions and 0 deletions
|
@ -1452,6 +1452,15 @@ def line(path, content, match=None, mode=None, location=None,
|
|||
:param indent
|
||||
Keep indentation with the previous line.
|
||||
|
||||
If an equal sign (``=``) appears in an argument to a Salt command, it is
|
||||
interpreted as a keyword argument in the format of ``key=val``. That
|
||||
processing can be bypassed in order to pass an equal sign through to the
|
||||
remote shell command by manually specifying the kwarg:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' file.line /path/to/file content="CREATEMAIL_SPOOL=no" match="CREATE_MAIL_SPOOL=yes" mode="replace"
|
||||
|
||||
CLI Examples:
|
||||
|
||||
.. code-block:: bash
|
||||
|
|
Loading…
Add table
Reference in a new issue