diff --git a/backend/app/services/device_discovery.py b/backend/app/services/device_discovery.py index 12ae5cc..e06aa38 100644 --- a/backend/app/services/device_discovery.py +++ b/backend/app/services/device_discovery.py @@ -95,7 +95,7 @@ class DiscoveredDevice: def _parse_config(config_text: str, rack_host: str) -> list[DiscoveredDevice]: """Extract discovered network devices from a caps config file.""" - parser = RawConfigParser() + parser = RawConfigParser(strict=False) parser.read_string(config_text) discovered: list[DiscoveredDevice] = [] @@ -191,7 +191,7 @@ async def _autodetect_db_from_server( except Exception: return None - parser = RawConfigParser() + parser = RawConfigParser(strict=False) parser.read_string(config_text) db_uri = parser.get("server", "db_uri", fallback=None)