tools: fix error when releasever cannot be found
See https://github.com/osbuild/osbuild/pull/1724/files#diff-15816f60793fa39af2d7cbd2c9a78fb4b4a1867f2a60e915e21e1efa8662976eR447
This commit is contained in:
parent
1b33251919
commit
b47ac7f59f
2 changed files with 2 additions and 2 deletions
|
|
@ -447,7 +447,7 @@ def validate_request(request):
|
|||
if not request.get("releasever"):
|
||||
return {
|
||||
"kind": "InvalidRequest",
|
||||
"reason": "no 'module_platform_id' specified"
|
||||
"reason": "no 'releasever' specified"
|
||||
}
|
||||
arguments = request.get("arguments")
|
||||
if not arguments:
|
||||
|
|
|
|||
|
|
@ -573,7 +573,7 @@ def validate_request(request):
|
|||
if not request.get("releasever"):
|
||||
return {
|
||||
"kind": "InvalidRequest",
|
||||
"reason": "no 'module_platform_id' specified"
|
||||
"reason": "no 'releasever' specified"
|
||||
}
|
||||
arguments = request.get("arguments")
|
||||
if not arguments:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue