Prevent garbage from readline on standard output of dogtag-ipa-retrieve-agent.

https://fedorahosted.org/freeipa/ticket/4064
This commit is contained in:
Jan Cholasta 2013-12-10 16:32:08 +01:00 committed by Petr Viktorin
parent 397b2876e2
commit 1357eade4c

View File

@ -23,6 +23,10 @@
# retrieve the updated certificate from IPA.
import os
# Prevent garbage from readline on standard output
# (see https://fedorahosted.org/freeipa/ticket/4064)
if not os.isatty(1):
os.environ['TERM'] = 'dumb'
import sys
import shutil
import tempfile