Merge pull request #23661 from rallytime/merge-23640

Merge #23640 with whitespace fix
This commit is contained in:
Nicole Thomas 2015-05-13 09:47:30 -06:00
commit 0f006ac1d8

View file

@ -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)