Resolve pycrypto gce failure on EL6 systems

Tracking upstream change https://github.com/ansible/ansible/pull/10787
This commit is contained in:
James Laska 2015-04-20 13:19:49 -04:00
parent 38f0b46ded
commit 86cb23117f

View File

@ -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"