From 2caa52a981231cd56874f3f687a1e08601994578 Mon Sep 17 00:00:00 2001 From: soarpenguin Date: Sat, 26 Sep 2015 14:09:56 +0800 Subject: [PATCH] fix no self pointer out of class. --- lib/ansible/utils/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/display.py b/lib/ansible/utils/display.py index 380f5b3327e..57b6573e663 100644 --- a/lib/ansible/utils/display.py +++ b/lib/ansible/utils/display.py @@ -46,7 +46,7 @@ debug_lock = Lock() if C.DEFAULT_LOG_PATH: path = C.DEFAULT_LOG_PATH if (os.path.exists(path) and not os.access(path, os.W_OK)) and not os.access(os.path.dirname(path), os.W_OK): - self._display.warning("log file at %s is not writeable, aborting\n" % path) + print("[WARNING]: log file at %s is not writeable, aborting\n" % path, file=sys.stderr) logging.basicConfig(filename=path, level=logging.DEBUG, format='%(asctime)s %(name)s %(message)s') mypid = str(os.getpid())