summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Vhost.py
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
commitee908766e9704749d00845f0b14cbfa5681850fd (patch)
tree96b8b6d16c189085dc0174e46e1e995fe977d912 /src/lib/Server/Plugins/Vhost.py
parentc62e5282a63c64712b9653ac3ffc1e2364f73845 (diff)
downloadbcfg2-ee908766e9704749d00845f0b14cbfa5681850fd.tar.gz
bcfg2-ee908766e9704749d00845f0b14cbfa5681850fd.tar.bz2
bcfg2-ee908766e9704749d00845f0b14cbfa5681850fd.zip
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
Diffstat (limited to 'src/lib/Server/Plugins/Vhost.py')
-rw-r--r--src/lib/Server/Plugins/Vhost.py6
1 files changed, 4 insertions, 2 deletions
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'''