diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index e2bef10eb..77ac57c72 100755 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -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, ""); }