diff --git a/cmd/osbuild-composer/config.go b/cmd/osbuild-composer/config.go index ad55398d2..63f2094f3 100644 --- a/cmd/osbuild-composer/config.go +++ b/cmd/osbuild-composer/config.go @@ -123,9 +123,10 @@ func GetDefaultConfig() *ComposerConfigFile { }, }, DistroAliases: map[string]string{ - "rhel-7": "rhel-7.9", - "rhel-8": "rhel-8.10", - "rhel-9": "rhel-9.4", + "rhel-7": "rhel-7.9", + "rhel-8": "rhel-8.10", + "rhel-9": "rhel-9.4", + "rhel-10": "rhel-10.0", }, LogLevel: "info", LogFormat: "text", diff --git a/cmd/osbuild-composer/config_test.go b/cmd/osbuild-composer/config_test.go index c5b1d2d7a..8555d0611 100644 --- a/cmd/osbuild-composer/config_test.go +++ b/cmd/osbuild-composer/config_test.go @@ -70,9 +70,10 @@ func TestDefaultConfig(t *testing.T) { require.Equal(t, expectedWeldrAPIConfig, defaultConfig.WeldrAPI) expectedDistroAliases := map[string]string{ - "rhel-7": "rhel-7.9", - "rhel-8": "rhel-8.10", - "rhel-9": "rhel-9.4", + "rhel-10": "rhel-10.0", + "rhel-7": "rhel-7.9", + "rhel-8": "rhel-8.10", + "rhel-9": "rhel-9.4", } require.Equal(t, expectedDistroAliases, defaultConfig.DistroAliases) @@ -108,9 +109,10 @@ func TestConfig(t *testing.T) { // 'rhel-8' and 'rhel-9' aliases are overwritten by the config file expectedDistroAliases := map[string]string{ - "rhel-7": "rhel-7.9", // this value is from the default config - "rhel-8": "rhel-8.9", - "rhel-9": "rhel-9.3", + "rhel-10": "rhel-10.0", // this value is from the default config + "rhel-7": "rhel-7.9", // this value is from the default config + "rhel-8": "rhel-8.9", + "rhel-9": "rhel-9.3", } require.Equal(t, expectedDistroAliases, config.DistroAliases) }