From 7a144eb75517f46211f4b631691cbc95a67d5174 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 5 Mar 2008 19:04:11 +0000 Subject: [PATCH] Fix tabgrep to not BUG on non-existant tables second attempt git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@689 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/tabutils.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm index da5b1e1a9..ad75f7837 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/tabutils.pm @@ -726,6 +726,7 @@ sub tabgrep foreach (@tablist) { my $tab = xCAT::Table->new($_); + unless ($tab) { next; } if ($tab and $tab->getNodeAttribs($node->[0], ["node"])) { $callback->({data => [$_]});