mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #10787 from jlaska/fix_gce_pycrypto26
Fix traceback with using GCE on EL6 with python-crypto2.6
This commit is contained in:
commit
ff6c654847
1 changed files with 10 additions and 0 deletions
|
@ -72,6 +72,16 @@ Author: Eric Johnson <erjohnso@google.com>
|
|||
Version: 0.0.1
|
||||
'''
|
||||
|
||||
__requires__ = ['pycrypto>=2.6']
|
||||
try:
|
||||
import pkg_resources
|
||||
except ImportError:
|
||||
# Use pkg_resources to find the correct versions of libraries and set
|
||||
# sys.path appropriately when there are multiversion installs. We don't
|
||||
# fail here as there is code that better expresses the errors where the
|
||||
# library is used.
|
||||
pass
|
||||
|
||||
USER_AGENT_PRODUCT="Ansible-gce_inventory_plugin"
|
||||
USER_AGENT_VERSION="v1"
|
||||
|
||||
|
|
Loading…
Reference in a new issue