summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-12-12 21:08:21 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-12-12 21:08:21 +0000
commita4b92de008aa1d56b521aebbfeaf442201df5a18 (patch)
tree6a96b7f2e79f0b7016eb4a38718861cdcbcfa4bf
parent548ebc7bea47cbad8677a1204b632344cffea629 (diff)
downloadbcfg2-a4b92de008aa1d56b521aebbfeaf442201df5a18.tar.gz
bcfg2-a4b92de008aa1d56b521aebbfeaf442201df5a18.tar.bz2
bcfg2-a4b92de008aa1d56b521aebbfeaf442201df5a18.zip
fix masked Fault exceptions
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1622 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/sbin/Bcfg2Server6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index d63ced61c..4b4193b76 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -157,7 +157,7 @@ class Bcfg2(Component):
except herror:
warning = "host resolution error for %s" % (client)
warning_error(warning)
- raise Fault, warning
+ raise Fault, (5, warning)
def Bcfg2GetProbes(self, address):
'''Fetch probes for a particular client'''
@@ -169,7 +169,7 @@ class Bcfg2(Component):
except MetadataConsistencyError:
warning = 'metadata consistency error'
warning_error(warning)
- raise Fault, warning
+ raise Fault, (6, warning)
for generator in self.Core.generators:
for probe in generator.GetProbes(meta):
resp.append(probe)
@@ -201,7 +201,7 @@ class Bcfg2(Component):
except MetadataConsistencyError:
warning = 'metadata consistency error'
warning_error(warning)
- raise Fault, warning
+ raise Fault, (6, warning)
return tostring(self.Core.BuildConfiguration(client))
def Bcfg2RecvStats(self, address, stats):