It looks like session is not connected, or has no method named sendline
Try adding some print statements (or run in debugger)
that is a sure way to see that you are getting the results that you expect.
Actually, looking at it a bit more, you're calling addClient with no arguments
in your example code, but the error message doesn't match, it shows an 'ls -la' command
please show code that matches error!
Try adding some print statements (or run in debugger)
that is a sure way to see that you are getting the results that you expect.
Actually, looking at it a bit more, you're calling addClient with no arguments
in your example code, but the error message doesn't match, it shows an 'ls -la' command
please show code that matches error!