diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-10-27 14:01:02 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-10-27 14:01:02 +0000 |
commit | 702dd06ee5ea8d655bf904249e16f8a309bb9d74 (patch) | |
tree | 02591e476c5ff19d4ea188b458ce875e1648ad0d /src/lib | |
parent | 07632503acd1f1cb8354f43be2d73a64e5b3c2b6 (diff) | |
download | bcfg2-702dd06ee5ea8d655bf904249e16f8a309bb9d74.tar.gz bcfg2-702dd06ee5ea8d655bf904249e16f8a309bb9d74.tar.bz2 bcfg2-702dd06ee5ea8d655bf904249e16f8a309bb9d74.zip |
TGenshi/TCheetah: Set type to 'file' for Path entries
Similar to r5475, we need to set the entry type of templated ConfigFiles
so that they are mapped properly by the POSIXCompat plugin.
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5509 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Plugins/TCheetah.py | 2 | ||||
-rw-r--r-- | src/lib/Server/Plugins/TGenshi.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py index 9988b80e4..8a0369eee 100644 --- a/src/lib/Server/Plugins/TCheetah.py +++ b/src/lib/Server/Plugins/TCheetah.py @@ -48,6 +48,8 @@ class TemplateFile: self.template.source_path = self.name self.searchlist['source_path'] = self.name + if entry.tag == 'Path': + entry.set('type', 'file') try: if type(self.template) == unicode: entry.text = self.template diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py index b38bdfb0b..08100e8e8 100644 --- a/src/lib/Server/Plugins/TGenshi.py +++ b/src/lib/Server/Plugins/TGenshi.py @@ -67,6 +67,8 @@ class TemplateFile: def bind_entry(self, entry, metadata): '''Build literal file information''' fname = entry.get('realname', entry.get('name')) + if entry.tag == 'Path': + entry.set('type', 'file') try: stream = self.template.generate( \ name=fname, metadata=metadata, |