Skip to content

Commit

Permalink
fix #23695
Browse files Browse the repository at this point in the history
- require pycrypto >= 2.1.0 in requirements/zeromq.txt
- remove old workaround for pycrypto < 2.1 from salt/cloud/__init__.py
  • Loading branch information
msteed committed May 14, 2015
1 parent fd2d596 commit 05a10f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion requirements/zeromq.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r base.txt

pycrypto
pycrypto >= 2.1.0
pyzmq >= 2.2.0
8 changes: 2 additions & 6 deletions salt/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from salt.template import compile_template

# Import third party libs
import Crypto.Random
import yaml
import salt.ext.six as six
from salt.ext.six.moves import input # pylint: disable=import-error,redefined-builtin
Expand Down Expand Up @@ -2231,12 +2232,7 @@ def run_parallel_map_providers_query(data, queue=None):
This function will be called from another process when building the
providers map.
'''
try:
import Crypto.Random # pylint: disable=E0611
Crypto.Random.atfork()
except ImportError:
# PyCrypto version < 2.1
pass
Crypto.Random.atfork()

cloud = Cloud(data['opts'])
try:
Expand Down

0 comments on commit 05a10f8

Please sign in to comment.