You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,7 +61,7 @@ Exit codes become available once stdout/stderr is iterated on or ``client.join(o
61
61
::
62
62
63
63
for host in output:
64
-
printoutput[host]['exit_code']
64
+
print(output[host]['exit_code'])
65
65
0
66
66
0
67
67
@@ -74,7 +74,7 @@ Similarly, if only exit codes are needed but not output ::
74
74
output = client.run_command('exit 0')
75
75
# Block and gather exit codes. Output variable is updated in-place
76
76
client.join(output)
77
-
printoutput[client.hosts[0]]['exit_code']
77
+
print(output[client.hosts[0]]['exit_code'])
78
78
0
79
79
80
80
There is a also host logger that can be enabled to log output from remote hosts. The helper function ``pssh.utils.enable_host_logger`` will enable host logging to stdout, for example ::
0 commit comments