From ee908766e9704749d00845f0b14cbfa5681850fd Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 28 Nov 2005 20:18:16 +0000 Subject: work around lxml bug (Logical change 1.367) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1537 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Vhost.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/Server/Plugins/Vhost.py') diff --git a/src/lib/Server/Plugins/Vhost.py b/src/lib/Server/Plugins/Vhost.py index 56d4e68f8..43c1b8ca5 100644 --- a/src/lib/Server/Plugins/Vhost.py +++ b/src/lib/Server/Plugins/Vhost.py @@ -67,7 +67,8 @@ class VhostFile(SingleXMLFileBacked): entry.text = 'NO_START=0\n' else: entry.text = 'NO_START=1\n' - 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()] def generateApacheSvc(self, entry, metadata): '''Enable apache service on webservices, disable on others''' @@ -96,7 +97,8 @@ class VhostFile(SingleXMLFileBacked): line = line.replace("XXchoiceXX", choice) config += line entry.text = base64.encodestring(config) - entry.attrib.update({'owner':'root', 'group':'root', 'perms':'0644', 'encoding':'base64'}) + perms = {'owner':'root', 'group':'root', 'perms':'0644', 'encoding':'base64'} + [entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()] class Vhost(Plugin): '''This Structure is good for the pile of independent configs needed for most actual systems''' -- cgit v1.2.3-1-g7c22