From 968f372bc1a6b3f137699673512aa7831a6e5df3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Mar 2009 04:32:13 +0000 Subject: [PATCH] -Fix syntax errors in previous checkin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 3 +-- xCAT-server/lib/xcat/plugins/destiny.pm | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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;