-Fix problem where xcatd would 'BUG' if a table didn't exist at all when trying to determine a command handler

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2770 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-02-19 00:45:53 +00:00
parent ca7610ba86
commit da7655af18

View File

@ -671,10 +671,14 @@ sub plugin_command {
unless (@nodes) { #register the plugin in the event of usage
$handler_hash{$ownmod} = 1;
}
my $hdlrcache = $hdlrtable->getNodesAttribs(\@nodes,\@columns);
my $hdlrcache;
if ($hdlrtable) {
$hdlrcache = $hdlrtable->getNodesAttribs(\@nodes,\@columns);
}
foreach $node (@nodes) {
unless ($hdlrcache) { next; }
my $attribs = $hdlrcache->{$node}->[0]; #$hdlrtable->getNodeAttribs($node,\@columns);
unless (defined($attribs)) { next; } #TODO: This really ought to craft an unsupported response for this request
unless (defined($attribs)) { next; }
foreach (@columns) {
my $col=$_;
if (defined($attribs->{$col})) {