diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-08-31 15:00:30 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-08-31 15:00:30 +0000 |
commit | 4c0b4509b2c2e257eeda4af015da09c37a06931c (patch) | |
tree | 8e653c596bda3887cb4d0d719ce3def12d402e6d | |
parent | 7875e56898fead0dcbbfd5e8e5bbf22127244dd2 (diff) | |
download | bcfg2-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/Bcfg2Server | 6 |
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__() |