From 86cb23117f84217ae974b53024ff7e64b92959f6 Mon Sep 17 00:00:00 2001 From: James Laska Date: Mon, 20 Apr 2015 13:19:49 -0400 Subject: [PATCH] Resolve pycrypto gce failure on EL6 systems Tracking upstream change https://github.com/ansible/ansible/pull/10787 --- awx/plugins/inventory/gce.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/awx/plugins/inventory/gce.py b/awx/plugins/inventory/gce.py index e77178c16b..76e14f2301 100755 --- a/awx/plugins/inventory/gce.py +++ b/awx/plugins/inventory/gce.py @@ -72,6 +72,16 @@ Author: Eric Johnson 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"