summaryrefslogtreecommitdiff
path: root/cloudinit/registry.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-04-23 16:50:20 -0400
committerGitHub <noreply@github.com>2020-04-23 16:50:20 -0400
commit7276aa5240b8cb84671a56d795d811f15dfba8e2 (patch)
tree9570ff6187b309904bf38edd9d0e55effbc173ab /cloudinit/registry.py
parentc5b44e46c13b0940a30073dc36196e430f8d2acb (diff)
downloadvyos-cloud-init-7276aa5240b8cb84671a56d795d811f15dfba8e2.tar.gz
vyos-cloud-init-7276aa5240b8cb84671a56d795d811f15dfba8e2.zip
distros: handle a potential mirror filtering error case (#328)
As written, it's possible that the first transformation for a mirror hostname could be passed None if the parsed mirror URL didn't have a hostname component, when the defined interface is that the transformations will be passed strings. This isn't an error currently, because the first transformation happens to gracefully handle being passed None. It returns None, so the pipeline processing ends there. This was caught when testing out mypy on the cloud-init codebase.
Diffstat (limited to 'cloudinit/registry.py')
0 files changed, 0 insertions, 0 deletions