preprocessor: config file: if creating windows node from unix machine, check to see if the password or remoteDrive are empty
parent
b98bf5e84b
commit
11bea492ac
|
@ -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;
|
cerr << "ERROR (node " << it->first << "): the UserName option must be passed for every remote node." << endl;
|
||||||
exit(EXIT_FAILURE);
|
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 defined(_WIN32) || defined(__CYGWIN32__)
|
||||||
if (it->second->operatingSystem.empty())
|
if (it->second->operatingSystem.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue