From f26e62b23f547fc5ad665cb08cc52e6431657779 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 11 Apr 2024 12:55:12 +0200 Subject: [PATCH] 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. --- tools/osbuild-depsolve-dnf | 2 +- tools/osbuild-depsolve-dnf5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/osbuild-depsolve-dnf b/tools/osbuild-depsolve-dnf index 9e86994a..18592b72 100755 --- a/tools/osbuild-depsolve-dnf +++ b/tools/osbuild-depsolve-dnf @@ -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", []) diff --git a/tools/osbuild-depsolve-dnf5 b/tools/osbuild-depsolve-dnf5 index fe42fd2e..252c2a15 100755 --- a/tools/osbuild-depsolve-dnf5 +++ b/tools/osbuild-depsolve-dnf5 @@ -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", [])