fix for bug 3922, use getNodesAttribs instead of getNodeAttribs

This commit is contained in:
ligc 2013-12-05 09:51:53 +08:00
parent e4f555bd71
commit abdf84c60f

2
xCAT-server/lib/xcat/plugins/destiny.pm Normal file → Executable file
View File

@ -236,7 +236,7 @@ sub setdestiny {
(my $portent) = $sitetab->getAttribs({key=>'xcatdport'},'value');
(my $mastent) = $sitetab->getAttribs({key=>'master'},'value');
my $enthash = $nodetype->getNodesAttribs(\@nodes,[qw(arch)]);
my $resents = $restab->getNodeAttribs(\@nodes,[qw(xcatmaster)]);
my $resents = $restab->getNodesAttribs(\@nodes,[qw(xcatmaster)]);
foreach (@nodes) {
my $ent = $enthash->{$_}->[0]; #$nodetype->getNodeAttribs($_,[qw(arch)]);
unless ($ent and $ent->{arch}) {