From 416b7eef5746a173cf2d564cb6964e2eeda72934 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 30 Jun 2011 17:54:02 -0400 Subject: [PATCH] make glob() in templates return a list --- src/pylorax/ltmpl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/ltmpl.py b/src/pylorax/ltmpl.py index ba3faa22..575e553a 100644 --- a/src/pylorax/ltmpl.py +++ b/src/pylorax/ltmpl.py @@ -108,7 +108,7 @@ class LoraxTemplateRunner(object): self.templatedir = templatedir # some builtin methods self.builtins = DataHolder(exists=lambda p: rexists(p, root=inroot), - glob=lambda g: rglob(g, root=inroot)) + glob=lambda g: list(rglob(g, root=inroot))) self.defaults = defaults self.results = DataHolder(treeinfo=dict()) # just treeinfo for now