From 170ef0a67ae5798d3451160d90a21c0bc526f30f Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 28 Nov 2005 20:18:16 +0000 Subject: 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 --- src/lib/Server/Plugins/TCheetah.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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''' -- cgit v1.2.3-1-g7c22