source: warn when POST /source specifies an unmatched source id

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2023-10-02 17:57:22 +02:00
parent fff2f6591f
commit f6da6162e4
1 changed files with 3 additions and 2 deletions

View File

@ -165,8 +165,9 @@ class SourceController(SubiquityController):
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: