mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-10-24 22:07:40 -05:00
fix: load ShapedDevices.csv when topology import missing
This commit is contained in:
1 parent
60f6fc2987
commit
affda46bda
1 file changed
+4
-1
@@ -83,7 +83,10 @@ pub fn load_shaped_devices() -> Result<ConfigShapedDevices> {
|
||||
.context("Unable to load topology_import.json")?
|
||||
{
|
||||
Some(topology_import) => Ok(topology_import.into_imported_bundle().shaped_devices),
|
||||
None => Ok(ConfigShapedDevices::default()),
|
||||
None => {
|
||||
debug!("topology_import.json missing; falling back to ShapedDevices.csv");
|
||||
ConfigShapedDevices::load().context("Unable to load ShapedDevices.csv")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ConfigShapedDevices::load().context("Unable to load ShapedDevices.csv")
|
||||
|
||||
Reference in new issue
Block a user