Bug #17315
closedWhile scheduling remote command on a client system fails with error "TypeError no implicit conversion of Net::SSH::Connection::Channel into String"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1389262
Description of problem:
While scheduling remote command on a client system fails with error "TypeError no implicit conversion of Net::SSH::Connection::Channel into String"
Version-Release number of selected component (if applicable):
Satellite v 6.2
How reproducible:
Always
Steps to Reproduce:
1. Setup a client with remote execution configured against satellite
2. On client system add echo "hello" to .bashrc file
3. Schedule "df -h" remote command to the client system.
Actual results:
Output:
Error initializing command #<Proxy::RemoteExecution::Ssh::Dispatcher::Command:0x000000033eb680>
TypeError no implicit conversion of Net::SSH::Connection::Channel into String
Exit status: EXCEPTION
Errors:
Script execution failed
Expected results:
Remote command execution should not fail because of the echo statements in .bashrc file.
Additional info:
If we run a remote command using ssh command on a system which has echo statement in .bashrc, it works successfully