mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	defect 3619: backup the req before dispatch to a xCAT module and recover it after the dispatch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -614,7 +614,10 @@ sub plugin_command {
 | 
			
		||||
        no strict  "refs";
 | 
			
		||||
#       eval { #REMOVEEVALFORDEBUG
 | 
			
		||||
#       if ($dispatch_requests) {
 | 
			
		||||
                dispatch_request($req,$callback,$modname);
 | 
			
		||||
        # backup the original req and recover it after the a run
 | 
			
		||||
        my $org_req = {%$req};
 | 
			
		||||
        dispatch_request($req,$callback,$modname);
 | 
			
		||||
        $req = {%$org_req};
 | 
			
		||||
#       } else {
 | 
			
		||||
#          $SIG{CHLD}='DEFAULT';
 | 
			
		||||
#          ${"xCAT_plugin::".$modname."::"}{process_request}->($req,$callback,\&do_request);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user