Skip to content

fix: add schema rules for 'baseurl' and 'metalink' in yum repo config (#5501)

xiachen requested to merge xiachen/cloud-init-centos:rhel-46874 into c10s

Jira: https://issues.redhat.com/browse/RHEL-46874

fix: add schema rules for 'baseurl' and 'metalink' in yum repo config (#5501)

At least one of (or both) 'baseurl' or 'metalink' should be provided for yum
repository specification. Add schema changes to enforce it. Without this,
with just 'metalink' property set, one would get the schema validator error

\---
Error: Cloud config schema errors: yum_repos.epel-release: 'baseurl' is a required property
\---

Upstream PR https://github.com/canonical/cloud-init/pull/5501

Signed-off-by: Amy Chen xiachen@redhat.com

Merge request reports