make glob() in templates return a list
This commit is contained in:
parent
2e8d5c78b8
commit
416b7eef57
@ -108,7 +108,7 @@ class LoraxTemplateRunner(object):
|
|||||||
self.templatedir = templatedir
|
self.templatedir = templatedir
|
||||||
# some builtin methods
|
# some builtin methods
|
||||||
self.builtins = DataHolder(exists=lambda p: rexists(p, root=inroot),
|
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.defaults = defaults
|
||||||
self.results = DataHolder(treeinfo=dict()) # just treeinfo for now
|
self.results = DataHolder(treeinfo=dict()) # just treeinfo for now
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user