Skip to content

Commit

Permalink
default to NO_RHSM mode when subscription-manager is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and fernflower committed Oct 23, 2023
1 parent bea0f89 commit 6661e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/upgrade/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 6661e49

Please sign in to comment.