From 2c937fb7cbf255d78c2e5e186c1294e4c448242a Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Mon, 14 Oct 2024 16:02:59 +0100 Subject: [PATCH] fix: Signing scripts needs access to environment variables. fixes #5911 --- CHANGES/5911.bugfix | 1 + pulpcore/app/models/content.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/5911.bugfix diff --git a/CHANGES/5911.bugfix b/CHANGES/5911.bugfix new file mode 100644 index 0000000000..62612a6481 --- /dev/null +++ b/CHANGES/5911.bugfix @@ -0,0 +1 @@ +pass envvars to Signing Scripts to access GNUPGHOME diff --git a/pulpcore/app/models/content.py b/pulpcore/app/models/content.py index 5205715cab..a0ba46f627 100644 --- a/pulpcore/app/models/content.py +++ b/pulpcore/app/models/content.py @@ -7,6 +7,7 @@ import asyncio import datetime import json +import os import tempfile import shutil import subprocess @@ -783,7 +784,7 @@ def _env_variables(self, env_vars=None): } if env_vars: env.update(env_vars) - return env + return {**os.environ, **env} def sign(self, filename, env_vars=None): """