mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #2146 from f0rk/f0rk/optional_arguments_docs
Generic keyword argument usage documentation
This commit is contained in:
commit
f10cf33b83
@ -135,6 +135,22 @@ Calling the Function
|
||||
The function to call on the specified target is placed after the target
|
||||
specification.
|
||||
|
||||
.. versionadded:: 0.9.8
|
||||
|
||||
Functions may also accept arguments, space-delimited:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' cmd.exec_code python 'import sys; print sys.version'
|
||||
|
||||
Optional, keyword arguments are also supported:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' pip.install salt timeout=5 upgrade=True
|
||||
|
||||
They are always in the form of ``kwarg=argument``.
|
||||
|
||||
Finding available minion functions
|
||||
``````````````````````````````````
|
||||
|
||||
|
@ -65,3 +65,9 @@ arguments
|
||||
Space-delimited arguments to the function::
|
||||
|
||||
salt '*' cmd.exec_code python 'import sys; print sys.version'
|
||||
|
||||
Optional, keyword arguments are also supported::
|
||||
|
||||
salt '*' pip.install salt timeout=5 upgrade=True
|
||||
|
||||
They are always in the form of ``kwarg=argument``.
|
||||
|
Loading…
Reference in New Issue
Block a user