From cb989f79b110b4b18d372deace94a7c6c7137b93 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Fri, 9 Dec 2022 15:29:46 +0100 Subject: [PATCH] util: fix typo in get_consumer_secrets Consumer key and cert paths were swapped. --- osbuild/util/rhsm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbuild/util/rhsm.py b/osbuild/util/rhsm.py index 32872d4b..ce18bbc4 100644 --- a/osbuild/util/rhsm.py +++ b/osbuild/util/rhsm.py @@ -41,8 +41,8 @@ class Subscriptions: @staticmethod def get_consumer_secrets(): """Returns the consumer identity certificate which uniquely identifies the system""" - key = "/etc/pki/consumer/cert.pem" - cert = "/etc/pki/consumer/key.pem" + key = "/etc/pki/consumer/key.pem" + cert = "/etc/pki/consumer/cert.pem" if not (os.path.exists(key) and os.path.exists(cert)): raise RuntimeError("rhsm consumer key and cert not found")