mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-03 21:02:36 +00:00 
			
		
		
		
	Fix python3 issues with noderun and nodeshell
This commit is contained in:
		@@ -97,6 +97,7 @@ def run():
 | 
			
		||||
                            pernodeout[node] = []
 | 
			
		||||
                        pernodeout[node].append(data)
 | 
			
		||||
                    else:
 | 
			
		||||
                        data = client.stringify(data)
 | 
			
		||||
                        if options.nonodeprefix:
 | 
			
		||||
                            sys.stderr.write(data)
 | 
			
		||||
                        else:
 | 
			
		||||
@@ -114,6 +115,7 @@ def run():
 | 
			
		||||
                            run_cmdv(node, cmdv, all, pipedesc)
 | 
			
		||||
        for node in sortutil.natural_sort(pernodeout):
 | 
			
		||||
            for line in pernodeout[node]:
 | 
			
		||||
                line = client.stringify(line)
 | 
			
		||||
                if options.nonodeprefix:
 | 
			
		||||
                    sys.stdout.write(line)
 | 
			
		||||
                else:
 | 
			
		||||
 
 | 
			
		||||
@@ -98,6 +98,7 @@ def run():
 | 
			
		||||
                            pernodeout[node] = []
 | 
			
		||||
                        pernodeout[node].append(data)
 | 
			
		||||
                    else:
 | 
			
		||||
                        data = client.stringify(data)
 | 
			
		||||
                        if options.nonodeprefix:
 | 
			
		||||
                            sys.stderr.write(data)
 | 
			
		||||
                        else:
 | 
			
		||||
@@ -115,6 +116,7 @@ def run():
 | 
			
		||||
                            run_cmdv(node, cmdv, all, pipedesc)
 | 
			
		||||
        for node in sortutil.natural_sort(pernodeout):
 | 
			
		||||
            for line in pernodeout[node]:
 | 
			
		||||
                line = client.stringify(line)
 | 
			
		||||
                if options.nonodeprefix:
 | 
			
		||||
                    sys.stdout.write(line)
 | 
			
		||||
                else:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user