diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-08-03 17:56:28 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-08-03 17:56:28 +0000 |
commit | 5d69ff7e966c4ffa911c78d11a6879b48e90aef8 (patch) | |
tree | b8c0d28e174a858939393e97b3e274a5a9c902e0 /src/sbin/bcfg2 | |
parent | 0602c41d8426df816f79daf55fcb49575e228c92 (diff) | |
download | bcfg2-5d69ff7e966c4ffa911c78d11a6879b48e90aef8.tar.gz bcfg2-5d69ff7e966c4ffa911c78d11a6879b48e90aef8.tar.bz2 bcfg2-5d69ff7e966c4ffa911c78d11a6879b48e90aef8.zip |
bcfg2: Write cached config using encoding from Options.py
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5399 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2')
-rwxr-xr-x | src/sbin/bcfg2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index bbdbba68d..1075cfc86 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -231,7 +231,7 @@ class Client: if self.setup['cache']: try: - open(self.setup['cache'], 'w').write(rawconfig) + open(self.setup['cache'], 'w').write(rawconfig.encode(self.setup['encoding'])) os.chmod(self.setup['cache'], 33152) except IOError: self.logger.warning("failed to write config cache file %s" % |