From e436085271fc494bdfeaa66c42ab2b50ec783bec Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 21 Aug 2012 17:21:42 -0400 Subject: fixed xml stringification in core, bcfg2 --- src/sbin/bcfg2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index b3b20eb78..3fbeb0a62 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -214,7 +214,7 @@ class Client: try: # upload probe responses proxy.RecvProbeData(Bcfg2.Client.XML.tostring(probedata, - encoding='unicode')) + xml_declaration=False).decode('UTF-8')) except Bcfg2.Proxy.ProxyError: err = sys.exc_info()[1] self.logger.error("Failed to upload probe data: %s" % err) @@ -313,7 +313,7 @@ class Client: try: proxy.RecvStats(Bcfg2.Client.XML.tostring(feedback, - encoding='unicode')) + xml_declaration=False).decode('UTF-8')) except Bcfg2.Proxy.ProxyError: err = sys.exc_info()[1] self.logger.error("Failed to upload configuration statistics: " -- cgit v1.2.3-1-g7c22