fix runtemplate invocation of getdefaults()

This commit is contained in:
Will Woods 2011-05-09 22:54:57 -04:00
parent 96ce44708d
commit 10a91e5c85

View File

@ -81,7 +81,7 @@ class BaseBuilder(object):
exists=lambda p: _exists(self.inroot, p))
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
t = LoraxTemplate()
logger.info("parsing %s with the following variables", templatefile)