Changeset 5509

Show
Ignore:
Timestamp:
10/27/09 09:01:02 (4 weeks ago)
Author:
solj
Message:

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@…>

Location:
trunk/bcfg2/src/lib/Server/Plugins
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/bcfg2/src/lib/Server/Plugins/TCheetah.py

    r5477 r5509  
    4949        self.searchlist['source_path'] = self.name 
    5050 
     51        if entry.tag == 'Path': 
     52            entry.set('type', 'file') 
    5153        try: 
    5254            if type(self.template) == unicode: 
  • trunk/bcfg2/src/lib/Server/Plugins/TGenshi.py

    r5477 r5509  
    6868        '''Build literal file information''' 
    6969        fname = entry.get('realname', entry.get('name')) 
     70        if entry.tag == 'Path': 
     71            entry.set('type', 'file') 
    7072        try: 
    7173            stream = self.template.generate( \