mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Add warning about using "=" in file.line function
Warnings for passing kwargs with equal signs as part of the value exist in other file.x functions, but was missing for the file.line execution module function. This adds the relevant warning. Fixes #28923
This commit is contained in:
parent
1a21b3d46b
commit
0e4f91fca2
@ -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…
Reference in New Issue
Block a user