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:
Abhijit Menon-Sen 2015-09-30 20:00:34 +05:30
parent bf06e36382
commit 0bb34fd076
2 changed files with 3 additions and 16 deletions

View file

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