fix for bug 3922, use getNodesAttribs instead of getNodeAttribs

This commit is contained in:
ligc 2013-12-05 09:47:39 +08:00
parent 2ecf98530b
commit 6040b777d7

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

@ -362,7 +362,7 @@ sub setdestiny {
my @entries = xCAT::TableUtils->get_site_attribute("master");
my $master_entry = $entries[0];
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}) {