mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Porting PR #51053 to 2019.2.1
This commit is contained in:
parent
8d4d5eaeb2
commit
86b8d6ddc3
1 changed files with 3 additions and 3 deletions
|
@ -81,9 +81,9 @@ Arguments are formatted as YAML:
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' cmd.run 'echo "Hello: $FIRST_NAME"' saltenv='{FIRST_NAME: "Joe"}'
|
||||
salt '*' cmd.run 'echo "Hello: $FIRST_NAME"' env='{FIRST_NAME: "Joe"}'
|
||||
|
||||
Note: dictionaries must have curly braces around them (like the ``saltenv``
|
||||
Note: dictionaries must have curly braces around them (like the ``env``
|
||||
keyword argument above). This was changed in 0.15.1: in the above example,
|
||||
the first argument used to be parsed as the dictionary
|
||||
``{'echo "Hello': '$FIRST_NAME"'}``. This was generally not the expected
|
||||
|
@ -94,7 +94,7 @@ If you want to test what parameters are actually passed to a module, use the
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' test.arg_repr 'echo "Hello: $FIRST_NAME"' saltenv='{FIRST_NAME: "Joe"}'
|
||||
salt '*' test.arg_repr 'echo "Hello: $FIRST_NAME"' env='{FIRST_NAME: "Joe"}'
|
||||
|
||||
Finding available minion functions
|
||||
``````````````````````````````````
|
||||
|
|
Loading…
Add table
Reference in a new issue