From c7cf72f3a2fbaf7a28499ceda2795e00f49eabf0 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 30 Aug 2012 17:14:21 +0000 Subject: [PATCH] fix for defect 3546058 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13672 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index a76017184..0801b86e7 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -250,13 +250,15 @@ sub gettab { my $tab = xCAT::Table->new($tabn); (my $ent) = $tab->getAttribs(\%keyhash, keys %{$tabhash{$tabn}}); - foreach my $coln (keys %{$tabhash{$tabn}}) - { + if ($ent) { + foreach my $coln (keys %{$tabhash{$tabn}}) + { if ($terse > 0) { $callback->({data => ["" . $ent->{$coln}]}); } else { $callback->({data => ["$tabn.$coln: " . $ent->{$coln}]}); } + } } $tab->close; }