Skip to content

Commit

Permalink
source: warn when POST /source specifies an unmatched source id
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
(cherry picked from commit f6da616)
  • Loading branch information
ogayot authored and dbungert committed Oct 5, 2023
1 parent f7c011c commit 04981fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subiquity/server/controllers/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 04981fd

Please sign in to comment.