IRS Demo config is now able to be run in any order if default directory settings are present.

This commit is contained in:
Clinton Alexander 2016-06-06 15:04:04 +01:00
parent 8010836f14
commit 7b2214e888

View File

@ -133,8 +133,13 @@ fun main(args: Array<String>) {
exitProcess(1)
}
} else {
val nodeParams = configureNodeParams(role, demoArgs, options)
runNode(nodeParams)
// If the directories are default assume both will be and ensure all config is created
if(!options.has(demoArgs.dirArg)) {
createNodeConfig(createNodeAParams());
createNodeConfig(createNodeBParams());
}
runNode(configureNodeParams(role, demoArgs, options))
exitProcess(0)
}
}