mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix #23695
- require pycrypto >= 2.1.0 in requirements/zeromq.txt - remove old workaround for pycrypto < 2.1 from salt/cloud/__init__.py
This commit is contained in:
parent
fd2d596e63
commit
05a10f8690
2 changed files with 3 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
-r base.txt
|
||||
|
||||
pycrypto
|
||||
pycrypto >= 2.1.0
|
||||
pyzmq >= 2.2.0
|
||||
|
|
|
@ -36,6 +36,7 @@ from salt.ext.six import string_types
|
|||
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
|
||||
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue