tools: fix proxy key error when "proxy" is not set

The "main" branch is failing right now in tests. The reason is
that we do not have a merge queue and when
https://github.com/osbuild/osbuild/pull/1715
was merged we had no test for `osbuild-depsolve-dnf` yet.

We have one now (THANK YOU achilleas-k) and it shows an issue :)

This commit fixes the issue.
This commit is contained in:
Michael Vogt 2024-04-11 12:55:12 +02:00 committed by Achilleas Koutsou
parent 599d3a8730
commit f26e62b23f
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ class Solver():
arch = request["arch"]
releasever = request.get("releasever")
module_platform_id = request["module_platform_id"]
proxy = request["proxy"]
proxy = request.get("proxy")
arguments = request["arguments"]
repos = arguments.get("repos", [])

View file

@ -93,7 +93,7 @@ class Solver():
arch = request["arch"]
releasever = request.get("releasever")
module_platform_id = request["module_platform_id"]
proxy = request["proxy"]
proxy = request.get("proxy")
arguments = request["arguments"]
repos = arguments.get("repos", [])