source: warn when POST /source specifies an unmatched source id
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
parent
fff2f6591f
commit
f6da6162e4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue