diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-11-28 21:39:04 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-11-28 21:39:04 +0000 |
commit | 762358a3647caa563ffede79073a0ee8edb64ca9 (patch) | |
tree | 3380630bf78f4645b154b5bfa7331a29ba1f8a80 /src | |
parent | 662ca85e183554a327fe15a6086ae6f64f927e6e (diff) | |
download | bcfg2-762358a3647caa563ffede79073a0ee8edb64ca9.tar.gz bcfg2-762358a3647caa563ffede79073a0ee8edb64ca9.tar.bz2 bcfg2-762358a3647caa563ffede79073a0ee8edb64ca9.zip |
remove debug message
2005/11/28 14:30:10-06:00 anl.gov!desai
implement auto-base64 encoding of config files
(Logical change 1.368)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1550 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Cfg.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py index ea41791a9..c04c2e029 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -158,8 +158,6 @@ class ConfigFileEntry(object): self.deltas.remove(entry) syslog(LOG_INFO, "Cfg: Entry deletion completed") elif action in ['changed', 'exists', 'created']: - if action == 'changed': - syslog(LOG_INFO, "Cfg: File %s changed" % event.filename) [entry.HandleEvent(event) for entry in entries] else: syslog(LOG_ERR, "Cfg: Unhandled Action %s for file %s" % (action, event.filename)) @@ -193,10 +191,11 @@ class ConfigFileEntry(object): [entry.attrib.__setitem__(x,y) for (x,y) in self.metadata.iteritems()] if self.paranoid: entry.attrib['paranoid'] = 'true' - if self.metadata['encoding'] == 'base64': - entry.text = b2a_base64(filedata) - else: + try: entry.text = filedata + except: + entry.text = b2a_base64(filedata) + entry.attrib['encoding'] = 'base64' class Cfg(Plugin): '''This generator in the configuration file repository for bcfg2''' |