Monte Carlo shell command not set correctly when use shell used.

When a user shell is specified, the command is never written into
the buffer that is used to start a slave.

fixes #59
This commit is contained in:
Alex Lin 2015-05-21 16:40:01 -05:00
parent 2e78e89a5b
commit caf79f5e45

View File

@ -85,13 +85,13 @@ void Trick::MonteCarlo::default_slave_dispatch_pre_text(Trick::MonteSlave* slave
case TRICK_USER_REMOTE_SH:
if (slave_to_init->user_remote_shell.empty()) {
slave_to_init->user_remote_shell = unix_ssh;
buffer = slave_to_init->user_remote_shell;
if (verbosity >= ERROR) {
message_publish(MSG_WARNING, "Monte: TRICK_USER_REMOTE_SH specified for Slave %s:%d, but no shell given.\n"
"Defaulting to %s.\n",
machine_name.c_str(), slave_to_init->id, slave_to_init->user_remote_shell.c_str()) ;
}
}
buffer = slave_to_init->user_remote_shell;
break;
default:
buffer = unix_ssh;