mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	fix defect 3555748
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13613 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -826,10 +826,10 @@ sub updatenode
 | 
			
		||||
                push @{$syncfile_node{$synclist}}, $node;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        # Check the existence of the synclist file
 | 
			
		||||
        foreach my $synclist (keys %syncfile_node)
 | 
			
		||||
        {
 | 
			
		||||
        if (%syncfile_node) { # there are files to sync defined        
 | 
			
		||||
          foreach my $synclist (keys %syncfile_node)
 | 
			
		||||
          {
 | 
			
		||||
            if (!(-r $synclist))
 | 
			
		||||
            {
 | 
			
		||||
                my $rsp = {};
 | 
			
		||||
@@ -838,11 +838,11 @@ sub updatenode
 | 
			
		||||
                xCAT::MsgUtils->message("E", $rsp, $callback);
 | 
			
		||||
                return 1;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
        # Sync files to the target nodes
 | 
			
		||||
        foreach my $synclist (keys %syncfile_node)
 | 
			
		||||
        {
 | 
			
		||||
          # Sync files to the target nodes
 | 
			
		||||
          foreach my $synclist (keys %syncfile_node)
 | 
			
		||||
          {
 | 
			
		||||
            if ($::VERBOSE)
 | 
			
		||||
            {
 | 
			
		||||
                my $rsp = {};
 | 
			
		||||
@@ -873,10 +873,16 @@ sub updatenode
 | 
			
		||||
                      },
 | 
			
		||||
                      $callback
 | 
			
		||||
                      );
 | 
			
		||||
          }
 | 
			
		||||
          my $rsp = {};
 | 
			
		||||
          $rsp->{data}->[0] = "File synchronization has completed.";
 | 
			
		||||
          $callback->($rsp);
 | 
			
		||||
        } else { # no syncfiles defined
 | 
			
		||||
          my $rsp = {};
 | 
			
		||||
          $rsp->{data}->[0] = "There were no syncfiles defined to process. File synchronization has completed.";
 | 
			
		||||
          $callback->($rsp);
 | 
			
		||||
            
 | 
			
		||||
        }
 | 
			
		||||
        my $rsp = {};
 | 
			
		||||
        $rsp->{data}->[0] = "File synchronization has completed.";
 | 
			
		||||
        $callback->($rsp);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (scalar(@$AIXnodes))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user