pre-create mypostscript enhancement: get the noderes.netboot noderes.tftpdir ahead of time for get_nodeset_state in SvrUtils.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14187 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-11-01 01:53:22 +00:00
parent c8db25f98d
commit d15a2add7a

View File

@ -1651,6 +1651,9 @@ sub collect_all_attribs_for_tables_in_template
my $ent;
my $bynode=0;
if ($key eq "THISNODE" or $key eq '$NODE') {
if( $tabname =~ /^noderes$/ ) {
@attribs = (@attribs, "netboot", "tftpdir"); ## add the attribs which will be needed in other place.
}
$ent = $tabh->getNodesAttribs($nodes,@attribs);
if ($ent) {
foreach my $node (@$nodes) {