From b46f7a12cf354f2d2d45ebf8991fb34f028432ea Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 23 Oct 2008 20:36:42 +0000 Subject: [PATCH] -Fix monitorctrl problem with non-existant tables git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2384 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/monitoring/monitorctrl.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm index 8514cc711..04b48ac43 100644 --- a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm +++ b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm @@ -635,8 +635,12 @@ sub setNodeStatusAttributes { xCAT::MsgUtils->message("S", "Could not read the nodelist table\n"); } - $tab->close; - $nttab->close; + if ($tab) { + $tab->close; + } + if ($nttab) { + $nttab->close; + } return 0; }