summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 10:00:38 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 10:00:38 -0400
commitd59c274547b6aecb3bcbfb99d1b874d403c51bea (patch)
tree7d83406c21f1825a7ec24675f2b6f86123a62da0 /src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
parent2c86f67fa234406ee0007a3f77cc1aa9f45ed746 (diff)
downloadbcfg2-d59c274547b6aecb3bcbfb99d1b874d403c51bea.tar.gz
bcfg2-d59c274547b6aecb3bcbfb99d1b874d403c51bea.tar.bz2
bcfg2-d59c274547b6aecb3bcbfb99d1b874d403c51bea.zip
fixed lxml.etree.tostring invocations
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
index 5b8dd24d3..4b9403320 100644
--- a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
+++ b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
@@ -386,8 +386,8 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet):
[infotag.attrib.__setitem__(attr, metadata_updates[attr])
for attr in metadata_updates]
ofile = open(self.path + "/info.xml", "w")
- ofile.write(lxml.etree.tostring(infoxml, encoding='unicode',
- pretty_print=True))
+ ofile.write(lxml.etree.tostring(infoxml, xml_declaration=False,
+ pretty_print=True).decode('UTF-8'))
ofile.close()
self.debug_log("Wrote file %s" % os.path.join(self.path,
"info.xml"),