moved last utils.debug to display.debug

This commit is contained in:
Brian Coca 2016-04-08 16:00:36 -04:00
parent dd32ba406a
commit 005dc84aa7
6 changed files with 31 additions and 36 deletions

View file

@ -39,7 +39,6 @@ from ansible.plugins import filter_loader, lookup_loader, test_loader
from ansible.template.safe_eval import safe_eval
from ansible.template.template import AnsibleJ2Template
from ansible.template.vars import AnsibleJ2Vars
from ansible.utils.debug import debug
from ansible.utils.unicode import to_unicode, to_str
try:
@ -499,7 +498,7 @@ class Templar:
errmsg += "Make sure your variable name does not contain invalid characters like '-': %s" % to_str(te)
raise AnsibleUndefinedVariable(errmsg)
else:
debug("failing because of a type error, template data is: %s" % to_str(data))
display.debug("failing because of a type error, template data is: %s" % to_str(data))
raise AnsibleError("Unexpected templating type error occurred on (%s): %s" % (to_str(data),to_str(te)))
if preserve_trailing_newlines: