summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Vhost.py
diff options
context:
space:
mode:
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'''