You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to convert certain domain.json to db.domain.com and get the error
jinja2.exceptions.UndefinedError: 'soa' is undefined
./bindZoneMaker.py -z domain.json > db.domain.com
Traceback (most recent call last):
File "./bindZoneMaker.py", line 50, in
main(sys.argv[1:])
File "./bindZoneMaker.py", line 42, in main
print(template.render(dnszonejson))
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "./zone.j2", line 12, in top-level template code
@ IN SOA {{ soa['mname'] }} {{ soa['rname'] }}(
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'soa' is undefined
The text was updated successfully, but these errors were encountered:
Hi
Try to convert certain domain.json to db.domain.com and get the error
jinja2.exceptions.UndefinedError: 'soa' is undefined
./bindZoneMaker.py -z domain.json > db.domain.com
Traceback (most recent call last):
File "./bindZoneMaker.py", line 50, in
main(sys.argv[1:])
File "./bindZoneMaker.py", line 42, in main
print(template.render(dnszonejson))
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "./zone.j2", line 12, in top-level template code
@ IN SOA {{ soa['mname'] }} {{ soa['rname'] }}(
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 411, in getitem
return obj[argument]
jinja2.exceptions.UndefinedError: 'soa' is undefined
The text was updated successfully, but these errors were encountered: