fix runtemplate invocation of getdefaults()
This commit is contained in:
parent
96ce44708d
commit
10a91e5c85
@ -81,7 +81,7 @@ class BaseBuilder(object):
|
|||||||
exists=lambda p: _exists(self.inroot, p))
|
exists=lambda p: _exists(self.inroot, p))
|
||||||
|
|
||||||
def runtemplate(self, templatefile, **variables):
|
def runtemplate(self, templatefile, **variables):
|
||||||
for k,v in self.getdefaults():
|
for k,v in self.getdefaults().items():
|
||||||
variables.setdefault(k,v) # setdefault won't override existing args
|
variables.setdefault(k,v) # setdefault won't override existing args
|
||||||
t = LoraxTemplate()
|
t = LoraxTemplate()
|
||||||
logger.info("parsing %s with the following variables", templatefile)
|
logger.info("parsing %s with the following variables", templatefile)
|
||||||
|
Loading…
Reference in New Issue
Block a user