From 3105a8bacd06d31a0b0f9d38de3ee182628a5f62 Mon Sep 17 00:00:00 2001
From: nic <nic>
Date: Thu, 12 Feb 2004 20:13:10 +0000
Subject: [PATCH] b=2618 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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lustre/utils/lconf b/lustre/utils/lconf
index 86ff367ce9..4e6b2ea423 100755
--- a/lustre/utils/lconf
+++ b/lustre/utils/lconf
@@ -2228,8 +2228,7 @@ def doHost(lustreDB, hosts):
         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)
-- 
GitLab