We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2035f commit 8b235beCopy full SHA for 8b235be
pssh.py
@@ -575,13 +575,13 @@ def get_output(self, commands=None):
575
commands = list(self.pool.greenlets)
576
output = {}
577
for cmd in commands:
578
- for (channel, host, stdout, stderr) in [cmd.get()]:
579
- output.setdefault(host, {})
580
- output[host].update({'exit_code': self._get_exit_code(channel),
581
- 'channel' : channel,
582
- 'stdout' : stdout,
583
- 'stderr' : stderr,
584
- 'cmd' : cmd, })
+ (channel, host, stdout, stderr) = cmd.get()
+ output.setdefault(host, {})
+ output[host].update({'exit_code': self._get_exit_code(channel),
+ 'channel' : channel,
+ 'stdout' : stdout,
+ 'stderr' : stderr,
+ 'cmd' : cmd, })
585
return output
586
587
def get_exit_code(self, host_output):
0 commit comments