From 84c16972718b24c05859a86e327ea55f23e2f1bb Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 22 Jul 2016 05:40:43 -0700 Subject: [PATCH] Only show the traceback for importing cryptography when in Ansible Debug. (#16795) --- lib/ansible/parsing/vault/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index 9b16be0a7a3..aa4cb7c16a3 100644 --- a/lib/ansible/parsing/vault/__init__.py +++ b/lib/ansible/parsing/vault/__init__.py @@ -79,7 +79,7 @@ except ImportError: except Exception as e: display.warning("Optional dependency 'cryptography' raised an exception, falling back to 'Crypto'") import traceback - traceback.print_exc() + display.debug("Traceback from import of cryptography was {0}".format(traceback.format_exc())) from ansible.compat.six import PY3 from ansible.utils.unicode import to_unicode, to_bytes