2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Merge pull request #87 from erderial/patch-5

Changed the Popen to skip the communication
This commit is contained in:
Jarrod Johnson 2022-10-14 11:06:57 -04:00 committed by GitHub
commit 167ef0ae33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,7 @@ if options.log:
logreader.replay_to_console(logname)
sys.exit(0)
#added functionality for wcons
if options.windowed:
nodes = []
sess = client.Command()
@ -65,7 +66,8 @@ if options.windowed:
nodes.append(node)
for node in sortutil.natural_sort(nodes):
sub = subprocess.Popen(['xterm', '-e', 'nodeconsole', node])
out,err = sub.communicate()
sys.exit(0)
#end of wcons
if options.tile:
null = open('/dev/null', 'w')