diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index a7b13f481..5908c8925 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -539,7 +539,7 @@ sub rflash { my $request = shift; my $hash = shift; my $exp = shift; - my $subreq = shift; + my $subreq = $request->{subreq}; my $hwtype = @$exp[2]; my @result; my $timeout = $request->{ppctimeout}; diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 485a7b37e..9d1bf5071 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -51,8 +51,6 @@ my %errmsg = ( DB_UNDEF =>"'%s' database not defined" ); -my $subreq; - ########################################################################## # Invokes the callback with the specified message ########################################################################## @@ -1119,7 +1117,7 @@ sub invoke_cmd { ######################################## # Process specific command ######################################## - my $result = runcmd( $request, $nodes, \@exp , $subreq); + my $result = runcmd( $request, $nodes, \@exp ); ######################################## # Close connection to remote server @@ -1372,7 +1370,7 @@ sub process_request { my $package = shift; my $req = shift; my $callback = shift; - $subreq = shift; + my $subreq = shift; #################################### # Get hwtype @@ -1387,6 +1385,7 @@ sub process_request { $request->{stdin} = $req->{stdin}->[0]; # $request->{hwtype} = $package; $request->{callback}= $callback; + $request->{subreq} = $subreq; ######################### #This is a special case for rspconfig and mkhwconn, #we shouldn't set hwtype as$package. and reserved for other commands.