summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-05-11 14:51:29 +0200
committerSol Jerome <sol.jerome@gmail.com>2011-06-14 12:36:45 -0500
commitaa8c53f8cf7d2e8bcf63176c45c44b19cbba2bf3 (patch)
tree8f81511394e6633e60e1ad5201e58e959580658d
parent30b1b4be5e9ff88b254814cda2b4d8184e80d6db (diff)
downloadbcfg2-aa8c53f8cf7d2e8bcf63176c45c44b19cbba2bf3.tar.gz
bcfg2-aa8c53f8cf7d2e8bcf63176c45c44b19cbba2bf3.tar.bz2
bcfg2-aa8c53f8cf7d2e8bcf63176c45c44b19cbba2bf3.zip
bcfg2: Convert specification from Unicode to UTF-8
The client receives the configuration specification as a Unicode string and then hands it over to the XML() function, which expects a UTF-8 encoded string. Therefore, the configuration specification is now converted to UTF-8. Resolves ticket #1009.
-rwxr-xr-xsrc/sbin/bcfg22
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 7f7d8f5c6..996d773ff 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -243,7 +243,7 @@ class Client:
raise SystemExit(1)
try:
- rawconfig = proxy.GetConfig()
+ rawconfig = proxy.GetConfig().encode('UTF-8')
except xmlrpclib.Fault:
self.logger.error("Failed to download configuration from Bcfg2")
raise SystemExit(2)