From 10a91e5c85b6f547b91853d051b2924c57b4e777 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 9 May 2011 22:54:57 -0400 Subject: [PATCH] fix runtemplate invocation of getdefaults() --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 95de94e1..8a0e986b 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -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)