Skip to content

Commit a3a454c

Browse files
authored
Fix the misleading error messages about multinode setups (#813)
1 parent 11bfdab commit a3a454c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Framework/src/InfrastructureSpecReader.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ TaskSpec InfrastructureSpecReader::readTaskSpec(std::string taskName, const boos
9797
ts.localMachines.emplace_back(value.get_value<std::string>());
9898
}
9999
}
100-
if (multinodeSetup && taskTree.count("remoteMachine") > 0) {
100+
if (multinodeSetup && taskTree.count("remoteMachine") == 0) {
101101
ILOG(Warning, Trace)
102102
<< "No remote machine was specified for a multinode QC setup."
103103
" This is fine if running with AliECS, but it will fail in standalone mode."
104104
<< ENDM;
105105
}
106106
ts.remoteMachine = taskTree.get<std::string>("remoteMachine", ts.remoteMachine);
107-
if (multinodeSetup && taskTree.count("remotePort") > 0) {
107+
if (multinodeSetup && taskTree.count("remotePort") == 0) {
108108
ILOG(Warning, Trace)
109109
<< "No remote port was specified for a multinode QC setup."
110110
" This is fine if running with AliECS, but it might fail in standalone mode."
@@ -191,4 +191,4 @@ std::string InfrastructureSpecReader::validateDetectorName(std::string name)
191191
return name;
192192
}
193193

194-
} // namespace o2::quality_control::core
194+
} // namespace o2::quality_control::core

0 commit comments

Comments
 (0)