mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add a mention of the True/False returns with __virtual__()
And their relationship to `__virtualname__`. Fixes #42375
This commit is contained in:
parent
4bf35a74de
commit
fa466519c4
1 changed files with 4 additions and 0 deletions
|
@ -405,6 +405,10 @@ similar to the following:
|
|||
return __virtualname__
|
||||
return False
|
||||
|
||||
Note that the ``__virtual__()`` function will return either a ``True`` or ``False``
|
||||
value. If it returns a ``True`` value, this ``__virtualname__`` module-level attribute
|
||||
can be set as seen in the above example. This is the name that the module should be
|
||||
referred to as.
|
||||
|
||||
Documentation
|
||||
=============
|
||||
|
|
Loading…
Add table
Reference in a new issue