mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Make «ansible-vault view» not write plaintext to a tempfile
CLI already provides a pager() method that feeds $PAGER on stdin, so we just feed that the plaintext from the vault file. We can also eliminate the redundant and now-unused shell_pager_command method in VaultEditor.
This commit is contained in:
parent
bf06e36382
commit
0bb34fd076
2 changed files with 3 additions and 16 deletions
|
@ -138,7 +138,7 @@ class VaultCLI(CLI):
|
|||
def execute_view(self):
|
||||
|
||||
for f in self.args:
|
||||
self.editor.view_file(f)
|
||||
self.pager(self.editor.plaintext(f))
|
||||
|
||||
def execute_rekey(self):
|
||||
for f in self.args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue