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
This commit is contained in:
jbjohnso 2008-03-05 19:02:27 +00:00
parent 27f9bd30a5
commit b71e85dd4f

View File

@ -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 => [$_]});
}