Change call to getAllNodeAttribs to support reg expression in nodetype table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-11-28 17:35:50 +00:00
parent 907af9b798
commit 553141df61

View File

@ -2223,7 +2223,7 @@ sub getnodetype
my $type;
if ( $nodes =~ /^ARRAY/) {
if (!%NODETYPEHASH) {
my @nodetypes = $nodetypetab->getAllAttribs('node','nodetype');
my @nodetypes = $nodetypetab->getAllNodeAttribs(['node','nodetype']);
foreach my $tn (@nodetypes) {
$NODETYPEHASH{ $tn->{'node'} } = $tn->{'nodetype'};
}