Whamcloud - gitweb
b=2618
authornic <nic>
Thu, 12 Feb 2004 20:13:10 +0000 (20:13 +0000)
committernic <nic>
Thu, 12 Feb 2004 20:13:10 +0000 (20:13 +0000)
r=shaver

get lconf to panic() when no host entry is found. using panic() will prevent
lconf from exiting cleanly when this happens.

lustre/utils/lconf

index 86ff367..4e6b2ea 100755 (executable)
@@ -2228,8 +2228,7 @@ def doHost(lustreDB, hosts):
         if node_db:
             break
     if not node_db:
         if node_db:
             break
     if not node_db:
-        print 'No host entry found.'
-        return
+        panic('No host entry found.')
 
     local_node_name = node_db.get_val('name', 0)
     is_router = node_db.get_val_int('router', 0)
 
     local_node_name = node_db.get_val('name', 0)
     is_router = node_db.get_val_int('router', 0)