Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
f3714c88
Commit
f3714c88
authored
Oct 06, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "atfork import warning should be suppressed when system_warnings = False"
This reverts commit
a1751686
.
parent
12d5b75a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
lib/ansible/runner/__init__.py
+3
-21
No files found.
lib/ansible/runner/__init__.py
View file @
f3714c88
...
...
@@ -32,7 +32,6 @@ import pipes
import
jinja2
import
subprocess
import
getpass
import
warnings
import
ansible.constants
as
C
import
ansible.inventory
...
...
@@ -50,7 +49,6 @@ from ansible.module_common import ModuleReplacer
from
ansible.module_utils.splitter
import
split_args
,
unquote
from
ansible.cache
import
FactCache
from
ansible.utils
import
update_hash
from
ansible.utils.display_functions
import
*
module_replacer
=
ModuleReplacer
(
strip_comments
=
False
)
...
...
@@ -61,26 +59,10 @@ except ImportError:
HAS_ATFORK
=
True
try
:
# some versions of pycrypto may not have this?
from
Crypto.pct_warnings
import
PowmInsecureWarning
from
Crypto.Random
import
atfork
except
ImportError
:
PowmInsecureWarning
=
RuntimeWarning
with
warnings
.
catch_warnings
(
record
=
True
)
as
warning_handler
:
warnings
.
simplefilter
(
"error"
,
PowmInsecureWarning
)
try
:
from
Crypto.Random
import
atfork
except
PowmInsecureWarning
:
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 (ie. yum update gmp)."
)
warnings
.
resetwarnings
()
warnings
.
simplefilter
(
"ignore"
)
HAS_ATFORK
=
False
except
ImportError
:
HAS_ATFORK
=
False
HAS_ATFORK
=
False
multiprocessing_runner
=
None
OUTPUT_LOCKFILE
=
tempfile
.
TemporaryFile
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment