defect 3346: support that the argument of nodeset could be multiple actions which separated with ,; e.g. runimage=xxx,osimage=xxx
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16058 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -90,7 +90,10 @@ sub setdestiny { | ||||
|     $chaintab = xCAT::Table->new('chain',-create=>1); | ||||
|     my @nodes=@{$req->{node}}; | ||||
|     my $state = $req->{arg}->[0]; | ||||
|     my $reststates; | ||||
|     ($state, $reststates) = split (/,/, $state, 2); | ||||
|     my %nstates; | ||||
|     my %fstates; | ||||
|     if ($state eq "enact") { | ||||
| 	my $nodetypetab = xCAT::Table->new('nodetype',-create=>1); | ||||
| 	my %nodestates; | ||||
| @@ -461,6 +464,9 @@ sub setdestiny { | ||||
| 	    $lstate = $nstates{$_}; | ||||
| 	}  | ||||
| 	$chaintab->setNodeAttribs($_,{currstate=>$lstate}); | ||||
|         if ($reststates) { | ||||
|            $chaintab->setNodeAttribs($_,{currchain=>$reststates}); | ||||
|         } | ||||
|     } | ||||
|     return getdestiny($flag + 1); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user