mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Cleanup pyflakes warning (real error)
This commit is contained in:
parent
a526eae543
commit
3da8bab3ff
1 changed files with 8 additions and 1 deletions
|
@ -30,6 +30,13 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
from __main__ import display
|
||||||
|
display = display
|
||||||
|
except ImportError:
|
||||||
|
from ansible.utils.display import Display
|
||||||
|
display = Display()
|
||||||
|
|
||||||
KEYCZAR_AVAILABLE=False
|
KEYCZAR_AVAILABLE=False
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
@ -44,7 +51,7 @@ try:
|
||||||
import keyczar.errors as key_errors
|
import keyczar.errors as key_errors
|
||||||
from keyczar.keys import AesKey
|
from keyczar.keys import AesKey
|
||||||
except PowmInsecureWarning:
|
except PowmInsecureWarning:
|
||||||
system_warning(
|
display.system_warning(
|
||||||
"The version of gmp you have installed has a known issue regarding " + \
|
"The version of gmp you have installed has a known issue regarding " + \
|
||||||
"timing vulnerabilities when used with pycrypto. " + \
|
"timing vulnerabilities when used with pycrypto. " + \
|
||||||
"If possible, you should update it (i.e. yum update gmp)."
|
"If possible, you should update it (i.e. yum update gmp)."
|
||||||
|
|
Loading…
Reference in a new issue