curl: fix RHSM url retrieval

This commit is contained in:
Andre Marianiello 2024-03-28 13:48:41 -04:00 committed by Simon de Vlieger
parent 62e1570ef9
commit 7e0e30fd8f

View file

@ -113,7 +113,7 @@ class CurlSource(sources.SourceService):
# rhsm secrets only need to be retrieved once and can then be reused
if self.subscriptions is None:
self.subscriptions = Subscriptions.from_host_system()
desc["secrets"] = self.subscriptions.get_secrets(desc.get("desc"))
desc["secrets"] = self.subscriptions.get_secrets(desc.get("url"))
elif desc.get("secrets", {}).get("name") == "org.osbuild.mtls":
key = os.getenv("OSBUILD_SOURCES_CURL_SSL_CLIENT_KEY")
cert = os.getenv("OSBUILD_SOURCES_CURL_SSL_CLIENT_CERT")