mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-27 01:15:34 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user