summaryrefslogtreecommitdiffstats
path: root/generators
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-08-02 18:25:00 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-08-02 18:25:00 +0000
commit72b8217c8024c3f6e26ade73bf6726a1044fab6a (patch)
treed638b20786ae39d6154959b24f5c9fdf9f8d5cbd /generators
parent045805d18bc2bad75df331dfa71fa1f52430bf67 (diff)
downloadbcfg2-72b8217c8024c3f6e26ade73bf6726a1044fab6a.tar.gz
bcfg2-72b8217c8024c3f6e26ade73bf6726a1044fab6a.tar.bz2
bcfg2-72b8217c8024c3f6e26ade73bf6726a1044fab6a.zip
fixed to new API
(Logical change 1.24) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@121 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'generators')
-rw-r--r--generators/cfg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/generators/cfg.py b/generators/cfg.py
index 676911c51..d76be9e92 100644
--- a/generators/cfg.py
+++ b/generators/cfg.py
@@ -96,7 +96,8 @@ class ConfigFileEntry(object):
else:
print "unhandled action %s"%(action)
- def GetConfigFile(self, name, metadata):
+ def GetConfigFile(self, entry, metadata):
+ name = entry.attrib['name']
filedata = ""
# first find basefile
try:
@@ -111,7 +112,8 @@ class ConfigFileEntry(object):
for delta in deltas:
pass
# apply diffs, etc
- return ConfigFile(self.path, self.owner, self.group, self.perms, filedata, self.encoding)
+ entry.attrib.update({'owner':self.owner, 'group':self.group, 'perms':self.perms, 'encoding':self.encoding})
+ entry.text = filedata
class ConfigFileRepository(DirectoryBacked):
'''This class implements repos and all change handling'''