mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	Fix 3737, updatenode -F will return non-zero when some nodes are failed. (#3816)
This commit is contained in:
		@@ -1791,11 +1791,17 @@ sub updatenodesyncfiles
 | 
			
		||||
        if ($request->{SNFileSyncing}->[0] eq "yes") {
 | 
			
		||||
            my $rsp = {};
 | 
			
		||||
            $rsp->{data}->[0] = "File synchronization has completed for service nodes.";
 | 
			
		||||
            if (@::FAILEDNODES) {
 | 
			
		||||
                $rsp->{errorcode}->[0] = 1;
 | 
			
		||||
            }
 | 
			
		||||
            $callback->($rsp);
 | 
			
		||||
        }
 | 
			
		||||
        if ($request->{FileSyncing}->[0] eq "yes") {
 | 
			
		||||
            my $rsp = {};
 | 
			
		||||
            $rsp->{data}->[0] = "File synchronization has completed for nodes.";
 | 
			
		||||
            if (@::FAILEDNODES) {
 | 
			
		||||
                $rsp->{errorcode}->[0] = 1;
 | 
			
		||||
            }
 | 
			
		||||
            $callback->($rsp);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user