mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-20 07:10:23 -07:00
moved last utils.debug to display.debug
This commit is contained in:
parent
dd32ba406a
commit
005dc84aa7
6 changed files with 31 additions and 36 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue