From 3da8bab3ff8730d94cd8b9d17a65960f9f450c66 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 19 Oct 2015 11:29:51 -0700 Subject: [PATCH] Cleanup pyflakes warning (real error) --- lib/ansible/utils/encrypt.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ansible/utils/encrypt.py b/lib/ansible/utils/encrypt.py index e06ff58250..976bf5028f 100644 --- a/lib/ansible/utils/encrypt.py +++ b/lib/ansible/utils/encrypt.py @@ -30,6 +30,13 @@ try: except: pass +try: + from __main__ import display + display = display +except ImportError: + from ansible.utils.display import Display + display = Display() + KEYCZAR_AVAILABLE=False try: try: @@ -44,7 +51,7 @@ try: import keyczar.errors as key_errors from keyczar.keys import AesKey except PowmInsecureWarning: - system_warning( + display.system_warning( "The version of gmp you have installed has a known issue regarding " + \ "timing vulnerabilities when used with pycrypto. " + \ "If possible, you should update it (i.e. yum update gmp)."