preprocessor: config file: if creating windows node from unix machine, check to see if the password or remoteDrive are empty

issue#70
Houtan Bastani 2013-05-30 15:30:38 +02:00
parent 55de45a0bb
commit c10a371bb5
1 changed files with 13 additions and 0 deletions

View File

@ -516,6 +516,19 @@ ConfigFile::checkPass(WarningConsolidation &warnings) const
cerr << "ERROR (node " << it->first << "): the UserName option must be passed for every remote node." << endl;
exit(EXIT_FAILURE);
}
if (it->second->operatingSystem.compare("windows") == 0)
{
if (it->second->password.empty())
{
cerr << "ERROR (node " << it->first << "): the Password option must be passed under Windows for every remote node." << endl;
exit(EXIT_FAILURE);
}
if (it->second->remoteDrive.empty())
{
cerr << "ERROR (node " << it->first << "): the RemoteDrive option must be passed under Windows for every remote node." << endl;
exit(EXIT_FAILURE);
}
}
#if defined(_WIN32) || defined(__CYGWIN32__)
if (it->second->operatingSystem.empty())
{