summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-08-31 15:00:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-08-31 15:00:30 +0000
commit4c0b4509b2c2e257eeda4af015da09c37a06931c (patch)
tree8e653c596bda3887cb4d0d719ce3def12d402e6d
parent7875e56898fead0dcbbfd5e8e5bbf22127244dd2 (diff)
downloadbcfg2-4c0b4509b2c2e257eeda4af015da09c37a06931c.tar.gz
bcfg2-4c0b4509b2c2e257eeda4af015da09c37a06931c.tar.bz2
bcfg2-4c0b4509b2c2e257eeda4af015da09c37a06931c.zip
add error handling case for fam failure
(Logical change 1.48) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@281 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/sbin/Bcfg2Server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index 6de61a0a4..0755eb882 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -30,7 +30,11 @@ class BcfgServer(Server):
generators = split(c.get('server','generators'),',')
structures = split(c.get('server', 'structures'),',')
mpath = c.get('server','metadata')
- self.core = Core(repo, structures, generators)
+ try:
+ self.core = Core(repo, structures, generators)
+ except IOError, e:
+ syslog(LOG_ERR, "Failed to connect to FAM")
+ self.shut = 1
self.metadata = MetadataStore("%s/metadata.xml"%(mpath), self.core.fam)
self.__progress__()