Commit ebd86dc5 authored by Daniel Smith's avatar Daniel Smith

fix primary host detection

parent d0cddd04
......@@ -86,6 +86,7 @@ if (globals.standalone && globals.nolocal) {
process.exit(1);
}
console.log("Starting in nolocal mode.");
globals.isPrimaryHost = true;
} else if (process.argv.some((e) => e === "agent")) {
// Override and empty any config of agent lists if this is not the scheduler.
console.log("Starting in agent mode.")
......@@ -93,6 +94,7 @@ if (globals.standalone && globals.nolocal) {
globals.agents = [];
} else if (process.argv[2] != undefined) {
parseAgentsFromArgs();
globals.isPrimaryHost = true;
}
if (!globals.nolocal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment