diff --git a/xCAT-server-2.0/lib/xcat/plugins/destiny.pm b/xCAT-server-2.0/lib/xcat/plugins/destiny.pm index dc399b262..c115a603d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/destiny.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/destiny.pm @@ -156,6 +156,10 @@ sub setdestiny { sub nextdestiny { + my $callnodeset=0; + if (scalar(@_)) { + $callnodeset=1; + } my @nodes; if ($request and $request->{node}) { if (ref($request->{node})) { @@ -210,6 +214,11 @@ sub nextdestiny { setdestiny(\%requ); getdestiny(); } + if ($callnodeset) { + $subreq->({command=>['nodeset'], + node=> \@nodes, + arg=>['enact']}); + } }