diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-02-18 02:13:18 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-02-18 02:13:18 +0000 |
commit | 6162d093719497b0ecfa3b34ba0ce9c6caac6389 (patch) | |
tree | 3f1bd44cf9350d306cc27be090b5ee764776607f /src | |
parent | e665d6ab163907331aad45a49b8082884d6000b1 (diff) | |
download | bcfg2-6162d093719497b0ecfa3b34ba0ce9c6caac6389.tar.gz bcfg2-6162d093719497b0ecfa3b34ba0ce9c6caac6389.tar.bz2 bcfg2-6162d093719497b0ecfa3b34ba0ce9c6caac6389.zip |
start passing bind failure information to clients
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5083 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py index c57e983f8..a162cbeb2 100644 --- a/src/lib/Server/Core.py +++ b/src/lib/Server/Core.py @@ -127,6 +127,8 @@ class Core(object): try: self.Bind(entry, metadata) except PluginExecutionError: + if 'failure' not in entry.attrib: + entry.set('failure', 'bind error') logger.error("Failed to bind entry: %s %s" % \ (entry.tag, entry.get('name'))) except: @@ -165,6 +167,7 @@ class Core(object): gen.HandlesEntry(entry, metadata)] if len(g2list) == 1: return g2list[0].HandleEntry(entry, metadata) + entry.set('failure', 'no matching generator') raise PluginExecutionError, (entry.tag, entry.get('name')) def BuildConfiguration(self, client): |