make vi the default editor if no EDITOR

fixes #15577
This commit is contained in:
Brian Coca
2016-05-02 08:42:50 -04:00
parent c6a9d20b5c
commit e0573d3099
3 changed files with 3 additions and 3 deletions

View File

@@ -445,7 +445,7 @@ class VaultEditor:
os.chown(dest, prev.st_uid, prev.st_gid)
def _editor_shell_command(self, filename):
EDITOR = os.environ.get('EDITOR','vim')
EDITOR = os.environ.get('EDITOR','vi')
editor = shlex.split(EDITOR)
editor.append(filename)