Skip to content

Commit

Permalink
fix data type error in verbosity log printing during yaml loading
Browse files Browse the repository at this point in the history
  • Loading branch information
epDHowwD committed Sep 15, 2023
1 parent 7d41656 commit 8cd0d44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jinja2_tools/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
import json
import sys
from pprint import pformat

from colors import red
from jinja2 import Template as Jinja2_template, exceptions
Expand Down Expand Up @@ -40,8 +41,11 @@ def get_extra_vars(self):
"""
A simple getter with verbose option
"""
print_verbose({'title': '[ExtraVars]', 'content': json.dumps(
self.data, indent=2), 'verbose': self.verbose})
print_verbose({
'title': '[ExtraVars]',
'content': pformat(self.data),
'verbose': self.verbose,
})
return self.data


Expand Down

0 comments on commit 8cd0d44

Please sign in to comment.