fix bug: disappeared in petitboot environment

This commit is contained in:
huweihua 2014-11-11 07:02:51 -05:00
parent 7f58d3fd6c
commit ba343557ec

View File

@ -54,6 +54,7 @@ sub getNodesetStates
my @yabootnodes = ();
my @xnbanodes= ();
my @grub2nodes = ();
my @petitbootnodes = ();
my $tabdata = $tab->getNodesAttribs(\@nodes, ['node', 'netboot']);
foreach my $node (@nodes)
{
@ -80,6 +81,10 @@ sub getNodesetStates
{
push(@grub2nodes, $node);
}
elsif ($nb eq "petitboot")
{
push(@petitbootnodes, $node);
}
}
my @retarray;
@ -148,6 +153,17 @@ sub getNodesetStates
xCAT::MsgUtils->message('E', $retarray[1]);
}
}
if (@petitbootnodes > 0)
{
require xCAT_plugin::petitboot;
@retarray = xCAT_plugin::petitboot::getNodesetStates(\@petitbootnodes, $hashref);
if ($retarray[0])
{
$retcode = $retarray[0];
$errormsg .= $retarray[1];
xCAT::MsgUtils->message('E', $retarray[1]);
}
}
}
return (0, "");
}