mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make gpg.encrypt examples work
This commit is contained in:
parent
55151e5f47
commit
3ec3303a07
2 changed files with 5 additions and 3 deletions
1
changelog/56646.fixed
Normal file
1
changelog/56646.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Make gpg.encrypt examples work
|
|
@ -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": ""}
|
||||
|
|
Loading…
Add table
Reference in a new issue