diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index c48902a20de..b2c87f0663e 100644 --- a/lib/ansible/parsing/vault/__init__.py +++ b/lib/ansible/parsing/vault/__init__.py @@ -70,6 +70,11 @@ try: HAS_PBKDF2HMAC = True except ImportError: pass +except Exception as e: + if e.__module__ == 'pkg_resources' and e.__class__.__name__ == 'DistributionNotFound': + pass + else: + raise from ansible.compat.six import PY3 from ansible.utils.unicode import to_unicode, to_bytes