mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
f20c0e42ce
commit
dd9115466e
1 changed files with 7 additions and 0 deletions
|
@ -495,6 +495,13 @@ def get_or_set_hash(name,
|
|||
.. code-block:: bash
|
||||
|
||||
salt '*' grains.get_or_set_hash 'django:SECRET_KEY' 50
|
||||
|
||||
.. warning::
|
||||
|
||||
This function could return strings which may contain characters which are reserved
|
||||
as directives by the YAML parser, such as strings beginning with `%`. To avoid
|
||||
issues when using the output of this function in an SLS file containing YAML+Jinja,
|
||||
surround the call with single quotes.
|
||||
'''
|
||||
ret = get(name, None)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue