Skip to content

Commit

Permalink
Fixing typos, many examples in here still don't work (ex. salt -t 15 …
Browse files Browse the repository at this point in the history
…'*' gpg.create_key throws errors), but some low hanging fruit is fixed.
  • Loading branch information
Zach Malone committed Feb 9, 2016
1 parent 7dafc6d commit 271c446
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions doc/man/salt.7
Original file line number Diff line number Diff line change
Expand Up @@ -106738,7 +106738,7 @@ CLI Example:
.ft C
salt \(aq*\(aq gpg.decrypt filename=\(aq/path/to/important.file.gpg\(aq

salt \(aq*\(aq gpg.decrypt filename=\(aq/path/to/important.file.gpg\(aq use_pasphrase=True
salt \(aq*\(aq gpg.decrypt filename=\(aq/path/to/important.file.gpg\(aq use_passphrase=True
.ft P
.fi
.UNINDENT
Expand Down Expand Up @@ -106833,7 +106833,7 @@ salt \(aq*\(aq gpg.encrypt text=\(aqHello there. How are you?\(aq

salt \(aq*\(aq gpg.encrypt filename=\(aq/path/to/important.file\(aq

salt \(aq*\(aq gpg.encrypt filename=\(aq/path/to/important.file\(aq use_pasphrase=True
salt \(aq*\(aq gpg.encrypt filename=\(aq/path/to/important.file\(aq use_passphrase=True
.ft P
.fi
.UNINDENT
Expand Down Expand Up @@ -106871,7 +106871,7 @@ salt \(aq*\(aq gpg.export_key keyids=3FAD9F1E

salt \(aq*\(aq gpg.export_key keyids=3FAD9F1E secret=True

salt \(aq*\(aq gpg.export_key keyid="[\(aq3FAD9F1E\(aq,\(aq3FBD8F1E\(aq]" user=username
salt \(aq*\(aq gpg.export_key keyids="[\(aq3FAD9F1E\(aq,\(aq3FBD8F1E\(aq]" user=username
.ft P
.fi
.UNINDENT
Expand Down Expand Up @@ -107141,7 +107141,7 @@ salt \(aq*\(aq gpg.sign text=\(aqHello there. How are you?\(aq

salt \(aq*\(aq gpg.sign filename=\(aq/path/to/important.file\(aq

salt \(aq*\(aq gpg.sign filename=\(aq/path/to/important.file\(aq use_pasphrase=True
salt \(aq*\(aq gpg.sign filename=\(aq/path/to/important.file\(aq use_passphrase=True
.ft P
.fi
.UNINDENT
Expand Down Expand Up @@ -107213,7 +107213,7 @@ salt \(aq*\(aq gpg.verify text=\(aqHello there. How are you?\(aq

salt \(aq*\(aq gpg.verify filename=\(aq/path/to/important.file\(aq

salt \(aq*\(aq gpg.verify filename=\(aq/path/to/important.file\(aq use_pasphrase=True
salt \(aq*\(aq gpg.verify filename=\(aq/path/to/important.file\(aq use_passphrase=True
.ft P
.fi
.UNINDENT
Expand Down
10 changes: 5 additions & 5 deletions salt/modules/gpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def export_key(keyids=None, secret=False, user=None, gnupghome=None):
salt '*' gpg.export_key keyids=3FAD9F1E secret=True
salt '*' gpg.export_key keyid="['3FAD9F1E','3FBD8F1E']" user=username
salt '*' gpg.export_key keyids="['3FAD9F1E','3FBD8F1E']" user=username
'''
gpg = _create_gpg(user, gnupghome)
Expand Down Expand Up @@ -921,7 +921,7 @@ def sign(user=None,
salt '*' gpg.sign filename='/path/to/important.file'
salt '*' gpg.sign filename='/path/to/important.file' use_pasphrase=True
salt '*' gpg.sign filename='/path/to/important.file' use_passphrase=True
'''
gpg = _create_gpg(user, gnupghome)
Expand Down Expand Up @@ -982,7 +982,7 @@ def verify(text=None,
salt '*' gpg.verify filename='/path/to/important.file'
salt '*' gpg.verify filename='/path/to/important.file' use_pasphrase=True
salt '*' gpg.verify filename='/path/to/important.file' use_passphrase=True
'''
gpg = _create_gpg(user)
Expand Down Expand Up @@ -1058,7 +1058,7 @@ def encrypt(user=None,
salt '*' gpg.encrypt filename='/path/to/important.file'
salt '*' gpg.encrypt filename='/path/to/important.file' use_pasphrase=True
salt '*' gpg.encrypt filename='/path/to/important.file' use_passphrase=True
'''
ret = {
Expand Down Expand Up @@ -1151,7 +1151,7 @@ def decrypt(user=None,
salt '*' gpg.decrypt filename='/path/to/important.file.gpg'
salt '*' gpg.decrypt filename='/path/to/important.file.gpg' use_pasphrase=True
salt '*' gpg.decrypt filename='/path/to/important.file.gpg' use_passphrase=True
'''
Expand Down

0 comments on commit 271c446

Please sign in to comment.