stages/dnf.config: fix schema for config.main

The properties for `main` were not properly defined and but also
not really checked since `additionalProperties` was not defined.
This commit is contained in:
Christian Kellner 2022-06-29 19:04:31 +02:00 committed by Tom Gundersen
parent 57b320f04f
commit c1c6ab6493

View file

@ -33,10 +33,14 @@ SCHEMA = r"""
}
},
"config_main": {
"ip_resolve": {
"type": "string",
"enum": ["4", "IPv4", "6", "IPv6"],
"description": "Determines how DNF resolves host names."
"type": "object",
"additionalProperties": false,
"properties": {
"ip_resolve": {
"type": "string",
"enum": ["4", "IPv4", "6", "IPv6"],
"description": "Determines how DNF resolves host names."
}
}
}
},