preprocessor: config file: if creating windows node from unix machine, check to see if the password or remoteDrive are empty
parent
55de45a0bb
commit
c10a371bb5
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue