diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-03-29 16:22:08 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-03-29 16:22:08 +0000 |
commit | f2b6a154273df7326fbb7c02dc3594247b22f9b5 (patch) | |
tree | 875daaf749cbacb1725e39e25a4fc41d4009eb06 /src | |
parent | d827f7eadfcb1817344ed6331e9c4062fdea68c5 (diff) | |
download | bcfg2-f2b6a154273df7326fbb7c02dc3594247b22f9b5.tar.gz bcfg2-f2b6a154273df7326fbb7c02dc3594247b22f9b5.tar.bz2 bcfg2-f2b6a154273df7326fbb7c02dc3594247b22f9b5.zip |
add client metadata into the mix
(Logical change 1.213)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@902 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Generators/TCheetah.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Generators/TCheetah.py b/src/lib/Server/Generators/TCheetah.py index 62dffbb78..3c8905381 100644 --- a/src/lib/Server/Generators/TCheetah.py +++ b/src/lib/Server/Generators/TCheetah.py @@ -20,8 +20,9 @@ class TemplateFile(FileBacked): self.template.properties = self.properties.properties # put in owner permission detection - def BuildFile(self, entry): + def BuildFile(self, entry, metadata): '''Build literal file information''' + self.metadata = metadata try: entry.text = str(self.template) except: @@ -58,7 +59,7 @@ class TCheetah(Generator): def BuildEntry(self, entry, metadata): '''Dispatch fetch calls to the correct object''' - self.entries[entry.get('name')].BuildFile(entry) + self.entries[entry.get('name')].BuildFile(entry, metadata) def MapName(self, name): '''MapName finds the object corresponding to a particular file |