Make gpg.encrypt examples work

This commit is contained in:
Ken Crowell 2020-10-07 15:33:21 -03:00 committed by Daniel Wozniak
parent 55151e5f47
commit 3ec3303a07
2 changed files with 5 additions and 3 deletions

1
changelog/56646.fixed Normal file
View file

@ -0,0 +1 @@
Make gpg.encrypt examples work

View file

@ -1192,11 +1192,12 @@ def encrypt(
.. code-block:: bash
salt '*' gpg.encrypt text='Hello there. How are you?'
salt '*' gpg.encrypt text='Hello there. How are you?' recipients=recipient@example.com
salt '*' gpg.encrypt filename='/path/to/important.file'
salt '*' gpg.encrypt filename='/path/to/important.file' recipients=recipient@example.com
salt '*' gpg.encrypt filename='/path/to/important.file' use_passphrase=True
salt '*' gpg.encrypt filename='/path/to/important.file' use_passphrase=True \\
recipients=recipient@example.com
"""
ret = {"res": True, "comment": ""}