modify the way of finding nodetype
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
78cfc4801f
commit
0e2b2088c0
@ -689,13 +689,17 @@ sub preprocess_request
|
||||
foreach my $n (@nodes)
|
||||
{
|
||||
# get the nodetype for each node
|
||||
my $ntype = xCAT::DBobjUtils->getnodetype($n);
|
||||
if ($ntype =~ /osi/) {
|
||||
#my $ntype = xCAT::DBobjUtils->getnodetype($n);
|
||||
my $ntable = xCAT::Table->new('nodetype');
|
||||
if ($ntable) {
|
||||
my $mytype = $ntable->getNodesAttribs($n,['nodetype']);
|
||||
if ($mytype =~ /osi/) {
|
||||
$Imsg++;
|
||||
}
|
||||
unless ($ntype =~ /osi/) {
|
||||
push @tmplist, $n;
|
||||
}
|
||||
}
|
||||
unless ($mytype =~ /osi/) {
|
||||
push @tmplist, $n;
|
||||
}
|
||||
}
|
||||
}
|
||||
@nodes = @tmplist;
|
||||
|
||||
@ -1139,11 +1143,16 @@ sub process_request
|
||||
foreach my $n (@{$req->{node}})
|
||||
{
|
||||
# get the nodetype for each node
|
||||
my $ntype = xCAT::DBobjUtils->getnodetype($n);
|
||||
# don't add if it is type "osi"
|
||||
unless ($ntype =~ /osi/) {
|
||||
#my $ntype = xCAT::DBobjUtils->getnodetype($n);
|
||||
my $ntable = xCAT::Table->new('nodetype');
|
||||
if ($ntable) {
|
||||
my $ntype = $ntable->getNodesAttribs($n,['nodetype']);
|
||||
|
||||
# don't add if it is type "osi"
|
||||
unless ($ntype =~ /osi/) {
|
||||
push @tmplist, $n;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@{$req->{node}} = @tmplist;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user