fix bug 3889 xcatd not running preprocess for multiple plugins when mgt=ipmi
This commit is contained in:
		@@ -1384,6 +1384,7 @@ sub plugin_command {
 | 
			
		||||
      }
 | 
			
		||||
    $parent_fd = $old_parent_fd;
 | 
			
		||||
  } else {
 | 
			
		||||
    my $req_back = undef;
 | 
			
		||||
      # executing plugins parallel
 | 
			
		||||
  foreach (keys %handler_hash) {
 | 
			
		||||
    my $modname = $_;
 | 
			
		||||
@@ -1409,6 +1410,11 @@ sub plugin_command {
 | 
			
		||||
        binmode($pfd,':utf8');
 | 
			
		||||
        $child = xCAT::Utils->xfork;
 | 
			
		||||
      } else {
 | 
			
		||||
        if ($req_back) {
 | 
			
		||||
            $req = dclone($req_back);
 | 
			
		||||
        } else {
 | 
			
		||||
            $req_back = dclone($req);
 | 
			
		||||
        }
 | 
			
		||||
        $child = 0;
 | 
			
		||||
      }
 | 
			
		||||
      unless (defined $child) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user