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