From 6dfe567017a56a231db07153be6604db4a9a0de3 Mon Sep 17 00:00:00 2001 From: rread Date: Wed, 9 Apr 2003 00:20:49 +0000 Subject: [PATCH] fix cut and paste braino --- lustre/utils/lactive | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/utils/lactive b/lustre/utils/lactive index 6fd5815..5a7ca7f 100644 --- a/lustre/utils/lactive +++ b/lustre/utils/lactive @@ -49,13 +49,18 @@ new = db.lookup_name(config.new) print "old:", old.getUUID() print "new:", new.getUUID() +def fatal(*args): + msg = string.join(map(str,args)) + print "! " + msg + sys.exit(1) + # find all the targets on the failed node and, change the active # pointers to point to the devices on the new node. prof_list = old.get_refs('profile') for prof_uuid in prof_list: prof_db = db.lookup(prof_uuid) if not prof_db: - panic("profile:", profile, "not found.") + fatal("profile:", profile, "not found.") for ref_class, ref_uuid in prof_db.get_all_refs(): if ref_class in ('osd', 'mdsdev'): devdb = db.lookup(ref_uuid) -- 1.8.3.1