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>
  • Loading branch information
ogayot committed Oct 2, 2023
1 parent fff2f65 commit f6da616
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 f6da616

Please sign in to comment.