summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-05-25 19:41:56 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-05-25 19:41:56 +0000
commit0792c96cd53bb310d1d3da18bc8d7ef5015280d0 (patch)
tree8cac3f8b5b0894af37f276092ba6df06fa66e8b5 /src
parent51eb4f51e388d5f428774ad1b42ed6a4eac50f53 (diff)
downloadbcfg2-0792c96cd53bb310d1d3da18bc8d7ef5015280d0.tar.gz
bcfg2-0792c96cd53bb310d1d3da18bc8d7ef5015280d0.tar.bz2
bcfg2-0792c96cd53bb310d1d3da18bc8d7ef5015280d0.zip
* Tighten up error handling
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1866 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index a7ff04a92..cac465490 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -2,7 +2,7 @@
'''This tool loads the Bcfg2 core into an interactive debugger'''
__revision__ = '$Revision$'
-import logging, lxml.etree, sys, time, Bcfg2.Logging, Bcfg2.Server.Core
+import logging, lxml.etree, sys, time, Bcfg2.Logging, Bcfg2.Server.Core, Bcfg2.Server.Metadata
def printTabular(rows):
'''print data in tabular format'''
@@ -27,7 +27,7 @@ def doShowentries(cmd, core):
return
try:
meta = core.metadata.get_metadata(cmd[1])
- except:
+ except Bcfg2.Server.Metadata.MetadataConsistencyError:
print "Unable to find metadata for host %s" % cmd[1]
return
structures = core.GetStructures(meta)