summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-09-03 19:49:17 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-09-03 19:49:17 +0000
commitdd6c96224582d126e3836c8ce499367760fb7b9f (patch)
tree7a348f40014369f1efd0ee4619e614e05ea7f41e /src/lib/Server/Admin
parent2430eb04c0e5b1015fc069f2928e0fa6063959d0 (diff)
downloadbcfg2-dd6c96224582d126e3836c8ce499367760fb7b9f.tar.gz
bcfg2-dd6c96224582d126e3836c8ce499367760fb7b9f.tar.bz2
bcfg2-dd6c96224582d126e3836c8ce499367760fb7b9f.zip
Fix traceback for nonexistent client
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4903 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r--src/lib/Server/Admin/Minestruct.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Minestruct.py b/src/lib/Server/Admin/Minestruct.py
index 83eaa2c0a..0bf7a5797 100644
--- a/src/lib/Server/Admin/Minestruct.py
+++ b/src/lib/Server/Admin/Minestruct.py
@@ -35,7 +35,11 @@ class Minestruct(Bcfg2.Server.Admin.StructureMode):
elif opt == '-g':
groups = optarg.split(':')
- extra = self.statistics.GetExtra(client)
+ try:
+ extra = self.statistics.GetExtra(client)
+ except:
+ self.log.error("Failed to find extra entry info for client %s" % client)
+ raise SystemExit(1)
root = lxml.etree.Element("Base")
self.log.info("Found %d extra entries" % (len(extra)))
add_point = root