27 lines
925 B
Diff
27 lines
925 B
Diff
|
From 6661e496143c47e92cd1d83ed1e4f1da8d0d617a Mon Sep 17 00:00:00 2001
|
||
|
From: Evgeni Golov <evgeni@golov.de>
|
||
|
Date: Sat, 21 Oct 2023 16:26:17 +0200
|
||
|
Subject: [PATCH 20/38] default to NO_RHSM mode when subscription-manager is
|
||
|
not found
|
||
|
|
||
|
---
|
||
|
commands/upgrade/util.py | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/commands/upgrade/util.py b/commands/upgrade/util.py
|
||
|
index b52da25c..b11265ee 100644
|
||
|
--- a/commands/upgrade/util.py
|
||
|
+++ b/commands/upgrade/util.py
|
||
|
@@ -191,6 +191,8 @@ def prepare_configuration(args):
|
||
|
os.environ['LEAPP_UNSUPPORTED'] = '0' if os.getenv('LEAPP_UNSUPPORTED', '0') == '0' else '1'
|
||
|
if args.no_rhsm:
|
||
|
os.environ['LEAPP_NO_RHSM'] = '1'
|
||
|
+ elif not os.path.exists('/usr/sbin/subscription-manager'):
|
||
|
+ os.environ['LEAPP_NO_RHSM'] = '1'
|
||
|
elif os.getenv('LEAPP_NO_RHSM') != '1':
|
||
|
os.environ['LEAPP_NO_RHSM'] = os.getenv('LEAPP_DEVEL_SKIP_RHSM', '0')
|
||
|
|
||
|
--
|
||
|
2.41.0
|
||
|
|