diff --git a/plugins/inventory/gce.py b/plugins/inventory/gce.py index e77178c16b..76e14f2301 100755 --- a/plugins/inventory/gce.py +++ b/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"