mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #32127 from rallytime/dunder-docs
Add runners to __salt__ docs
This commit is contained in:
commit
a09aa18036
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,7 @@ Available in
|
|||
- Execution Modules
|
||||
- State Modules
|
||||
- Returners
|
||||
- Runners
|
||||
|
||||
``__salt__`` contains the execution module functions. This allows for all
|
||||
functions to be called as they have been set up by the salt loader.
|
||||
|
@ -53,6 +54,11 @@ functions to be called as they have been set up by the salt loader.
|
|||
__salt__['cmd.run']('fdisk -l')
|
||||
__salt__['network.ip_addrs']()
|
||||
|
||||
.. note::
|
||||
|
||||
When used in runners, ``__salt__`` references other runner modules, and not
|
||||
execution modules.
|
||||
|
||||
__grains__
|
||||
----------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue