mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Fix salt_version execution module documentation
This commit is contained in:
parent
3693a0db42
commit
a92ddf5a41
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ A simple example might be something like the following:
|
|||
.. code-block:: jinja
|
||||
|
||||
{# a boolean check #}
|
||||
{% set option_deprecated = salt['salt_version.less_than']("3001") %}
|
||||
{% set option_deprecated = salt['salt_version.less_than']("Sodium") %}
|
||||
|
||||
{% if option_deprecated %}
|
||||
<use old syntax>
|
||||
|
@ -52,7 +52,7 @@ def __virtual__():
|
|||
def get_release_number(name):
|
||||
"""
|
||||
Returns the release number of a given release code name in a
|
||||
``MAJOR.PATCH`` format.
|
||||
``MAJOR.PATCH`` format (for Salt versions < 3000) or ``MAJOR`` for newer Salt versions.
|
||||
|
||||
If the release name has not been given an assigned release number, the
|
||||
function returns a string. If the release cannot be found, it returns
|
||||
|
|
Loading…
Add table
Reference in a new issue