Skip to content
Snippets Groups Projects
Commit 0f2116f4 authored by Thomas Müller's avatar Thomas Müller
Browse files

Allow setting network configs when no mode is set

parent a35ef5a2
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,7 @@ json Testbed::load_network_config(const fs::path& network_config_path) {
void Testbed::reload_network_from_file(const std::string& network_config_path_string) {
if (!network_config_path_string.empty()) {
fs::path candidate = find_network_config(network_config_path_string);
if (candidate.exists()) {
if (candidate.exists() || !m_network_config_path.exists()) {
// Store the path _argument_ in the member variable. E.g. for the base config,
// it'll store `base.json`, even though the loaded config will be
// config/<mode>/base.json. This has the benefit of switching to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment