summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-11-28 20:18:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-11-28 20:18:16 +0000
commit170ef0a67ae5798d3451160d90a21c0bc526f30f (patch)
treee733ed654bd29ea96c2facb4df52a596785a5a6a
parentc1e900f9f4b4917e63ddc6446043ad9af74cf2f4 (diff)
downloadbcfg2-170ef0a67ae5798d3451160d90a21c0bc526f30f.tar.gz
bcfg2-170ef0a67ae5798d3451160d90a21c0bc526f30f.tar.bz2
bcfg2-170ef0a67ae5798d3451160d90a21c0bc526f30f.zip
pedantic fix
2005/11/28 14:14:00-06:00 anl.gov!desai work around lxml bug (Logical change 1.367) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1544 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/TCheetah.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py
index 9b58737c1..314a5b0ac 100644
--- a/src/lib/Server/Plugins/TCheetah.py
+++ b/src/lib/Server/Plugins/TCheetah.py
@@ -28,8 +28,8 @@ class TemplateFile(FileBacked):
except:
syslog(LOG_ERR, "TCheetah: Failed to template %s" % entry.get('name'))
raise PluginExecutionError
- entry.attrib.update({'owner':'root', 'group':'root', 'perms':'0644'})
-
+ perms = {'owner':'root', 'group':'root', 'perms':'0644'}
+ [entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()]
class CheetahProperties(SingleXMLFileBacked):
'''Class for Cheetah properties'''