1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-01-06 08:21:10 +03:00

change how to look for remote login in addmodule

This commit is contained in:
david hill
2016-03-28 16:53:05 -05:00
parent 1d06f34848
commit 1ea1099415

View File

@@ -4583,7 +4583,7 @@ int ProcessManager::addModule(oam::DeviceNetworkList devicenetworklist, std::str
string cmd = installDir + "/bin/remote_command.sh " + IPAddr + " " + amazonDefaultPassword + " 'ls' 1 > /tmp/login_test.log";
system(cmd.c_str());
if (!oam.checkLogStatus("/tmp/login_test.log", "README")) {
if (WEXITSTATUS(rtnCode) != 0) {
//check for RSA KEY ISSUE and fix
if (oam.checkLogStatus("/tmp/login_test.log", "Offending RSA key")) {
log.writeLog(__LINE__, "addModule - login failed, RSA key issue, try fixing: " + moduleName, LOG_TYPE_DEBUG);