diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-11-13 14:50:12 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-11-13 14:50:12 -0500 |
commit | 0ccb4cd10b38362ec61da22238b37b3a55adc7fb (patch) | |
tree | b1b7d90277d500dea715577ea95f5d8286e3ad4a /src/lib | |
parent | c767963bb758b50c7010bf2249221c72c95b8857 (diff) | |
download | bcfg2-0ccb4cd10b38362ec61da22238b37b3a55adc7fb.tar.gz bcfg2-0ccb4cd10b38362ec61da22238b37b3a55adc7fb.tar.bz2 bcfg2-0ccb4cd10b38362ec61da22238b37b3a55adc7fb.zip |
don't pass full stack traces to client on bind failure
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Core.py b/src/lib/Bcfg2/Server/Core.py index a5fda6f0d..cd2aa949f 100644 --- a/src/lib/Bcfg2/Server/Core.py +++ b/src/lib/Bcfg2/Server/Core.py @@ -516,7 +516,7 @@ class BaseCore(object): except PluginExecutionError: exc = sys.exc_info()[1] if 'failure' not in entry.attrib: - entry.set('failure', 'bind error: %s' % format_exc()) + entry.set('failure', 'bind error: %s' % exc) self.logger.error("Failed to bind entry %s:%s: %s" % (entry.tag, entry.get('name'), exc)) except Exception: |