diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 2fdbe614f..c521e906c 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -958,7 +958,7 @@ sub setup_TFTP my %hmhash = %{$hmtab->getNodesAttribs(\@tnodes,[qw(node netboot)])}; foreach (@tnodes) { if ($hmhash{$_}->[0]->{netboot}) { - push $netmethods{$hmhash{$_}->[0]->{netboot}},$_; + push @{$netmethods{$hmhash{$_}->[0]->{netboot}}},$_; } } $cmdref->{command}->[0] = "nodeset"; @@ -966,7 +966,6 @@ sub setup_TFTP $cmdref->{cwd}->[0] = "/opt/xcat/sbin"; foreach my $modname (keys %netmethods) { $cmdref->{node} = $netmethods{$modname}; - print Dumper($cmdref); ${"xCAT_plugin::" . $modname . "::"}{process_request}->($cmdref, \&xCAT::Client::handle_response); } diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index eb1adc0f9..d829122bf 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -88,11 +88,12 @@ sub setdestiny { if ($stents{$_}->[0]->{currstate}) { $state = $stents{$_}->[0]->{currstate}; $state =~ s/ .*//; - push $nodestates{$state},$_; + push @{$nodestates{$state}},$_; } } foreach (keys %nodestates) { $req->{arg}->[0]=$_; + $req->{node} = $nodestates{$_}; setdestiny($req,30,1); #ludicrous flag to denote no table updates can be inferred. } return;