From 2a4dd0d434ad9f3d4eaa5672b1252cf1fe5fbfb8 Mon Sep 17 00:00:00 2001
From: Marta Vila Fernandes <ana.marta.lisboa.vila.fernandes@cern.ch>
Date: Mon, 18 Nov 2024 17:40:58 +0100
Subject: [PATCH] fix RNH variables typo

---
 reposync.nomad.tpl   | 4 ++--
 reposync/rhncheck.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/reposync.nomad.tpl b/reposync.nomad.tpl
index 4854e25..dcb734a 100644
--- a/reposync.nomad.tpl
+++ b/reposync.nomad.tpl
@@ -61,8 +61,8 @@ job "${PREFIX}_reposync_${REPOID}" {
       RHNCHECK_RHN_PASSWORD = "$RHNCHECK_RHN_PASSWORD"
       RHNCHECK_SYSTEMS = "$RHNCHECK_SYSTEMS"
       RHSM_OFFLINE_TOKEN = "$RHSM_OFFLINE_TOKEN"
-      RHSM_ACTIVATION_KEY = "$RHSM_ACTIVATION_KEY"
-      RHSM_ORG = "$RHSM_ORG"
+      RHN_ACTIVATION_KEY = "$RHN_ACTIVATION_KEY"
+      RHN_ORG = "$RHN_ORG"
       TAG = "${PREFIX}_reposync"
     }
 
diff --git a/reposync/rhncheck.py b/reposync/rhncheck.py
index 89ad461..d757d81 100755
--- a/reposync/rhncheck.py
+++ b/reposync/rhncheck.py
@@ -152,8 +152,8 @@ login = os.getenv('RHNCHECK_RHN_USER')
 password = os.getenv('RHNCHECK_RHN_PASSWORD')
 rhn_systems = os.getenv('RHNCHECK_SYSTEMS')
 offline_token = os.getenv('RHSM_OFFLINE_TOKEN')
-activation_key = os.getenv('RHSM_ACTIVATION_KEY')
-org = os.getenv('RHSM_ORG')
+activation_key = os.getenv('RHN_ACTIVATION_KEY')
+org = os.getenv('RHN_ORG')
 if (
     admin_email is None
     or login is None
-- 
GitLab