From 04981fdc9f8aa6856d704d237ad2f403080209c6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 2 Oct 2023 17:57:22 +0200 Subject: [PATCH] source: warn when POST /source specifies an unmatched source id Signed-off-by: Olivier Gayot (cherry picked from commit f6da6162e4b091069e87e9d202f322338361880a) --- subiquity/server/controllers/source.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subiquity/server/controllers/source.py b/subiquity/server/controllers/source.py index 028c2dd22..22480924a 100644 --- a/subiquity/server/controllers/source.py +++ b/subiquity/server/controllers/source.py @@ -165,8 +165,9 @@ async def POST(self, source_id: str, search_drivers: bool = False) -> None: try: new_source = self.model.get_matching_source(source_id) except KeyError: - # TODO going forward, we should probably stop silently ignoring - # unmatched sources. + # TODO going forward, we should probably stop ignoring unmatched + # sources. + log.warning("unable to find '%s' in sources catalog", source_id) pass else: if self.model.current != new_source: