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
{{ message }}
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
The type of queueObj['command_output'] may be a string or a list, but it may also be the SSHException type
ifisinstance(queueObj['command_output'], str):
pass# Since it is a string we'll assume it is already formatted properlyeliflen(queueObj['command_output']) >1: # Only prepend 'index: ' if we were passed more than one commandqueueObj['command_output'] ="\n".join(["%s: %s"% (index, command) forindex, commandinenumerate(queueObj['command_output'])])
else:
queueObj['command_output'] ="\n".join(queueObj['command_output'])
Error
File "/usr/sbin/sshpt", line 123, in run
self.writeOut(queueObj)
File "/usr/sbin/sshpt", line 106, in writeOut
elif len(queueObj['command_output']) > 1: # Only prepend 'index: ' if we were passed more than one command
TypeError: object of type 'SSHException' has no len()
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The type of queueObj['command_output'] may be a string or a list, but it may also be the SSHException type
Error
The text was updated successfully, but these errors were encountered: