mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
fix for passing parameters to templateEngine() class
This commit is contained in:
@ -62,6 +62,7 @@ class networkInterfaces():
|
|||||||
self._filestack = [self.interfacesfile]
|
self._filestack = [self.interfacesfile]
|
||||||
|
|
||||||
self._template_engine = None
|
self._template_engine = None
|
||||||
|
self._template_enable = template_enable
|
||||||
self._template_engine_name = template_engine
|
self._template_engine_name = template_engine
|
||||||
self._template_engine_path = template_lookuppath
|
self._template_engine_path = template_lookuppath
|
||||||
|
|
||||||
@ -392,8 +393,9 @@ class networkInterfaces():
|
|||||||
try:
|
try:
|
||||||
if not self._template_engine:
|
if not self._template_engine:
|
||||||
self._template_engine = templateEngine(
|
self._template_engine = templateEngine(
|
||||||
self._template_engine_name,
|
template_engine=self._template_engine_name,
|
||||||
self._template_engine_path)
|
template_enable=self._template_enable,
|
||||||
|
template_lookuppath=self._template_engine_path)
|
||||||
rendered_filedata = self._template_engine.render(filedata)
|
rendered_filedata = self._template_engine.render(filedata)
|
||||||
if rendered_filedata is filedata:
|
if rendered_filedata is filedata:
|
||||||
self._currentfile_has_template = False
|
self._currentfile_has_template = False
|
||||||
|
Reference in New Issue
Block a user