From 15ecb156d415ef39ae0f2d78f2cae774257ac503 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 13 May 2013 09:15:11 +0000 Subject: [PATCH] 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/branches/2.8@16257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/destiny.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index 65f08d20f..b9ed5f810 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -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); }