From a0480a1bc59410faef8afb59b8950215b38a0403 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 11 Apr 2012 20:20:55 -0400 Subject: [PATCH] Block some paramiko warnings that are not relevant. --- lib/ansible/connection.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ansible/connection.py b/lib/ansible/connection.py index e33e7e0e31..f85d44c0d7 100755 --- a/lib/ansible/connection.py +++ b/lib/ansible/connection.py @@ -18,7 +18,13 @@ ################################################ -import paramiko +import warnings +# prevent paramiko warning noise +# see http://stackoverflow.com/questions/3920502/ +with warnings.catch_warnings(): + warnings.simplefilter("ignore") + import paramiko + import traceback import os import time