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:
parent
27f9bd30a5
commit
b71e85dd4f
@ -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 => [$_]});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user