Skip to content

Commit

Permalink
BZ #1729179 - don't migrate EL8 hosts (#317)
Browse files Browse the repository at this point in the history
they don't ship subscription-manager-migration support anymore
  • Loading branch information
evgeni authored Jul 29, 2019
1 parent e1b2a99 commit 66f9713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ def exec_service(service, command, failonerror=True):
# pylint:disable=deprecated-method
RELEASE = platform.dist()[1]
IS_EL5 = int(RELEASE[0]) == 5
IS_EL8 = int(RELEASE[0]) == 8
if not IS_EL5:
DEFAULT_DOWNLOAD_METHOD = 'https'
else:
Expand Down Expand Up @@ -1418,7 +1419,7 @@ def exec_service(service, command, failonerror=True):
clean_katello_agent()
if 'puppet' not in options.skip:
clean_puppet()
elif check_rhn_registration() and 'migration' not in options.skip:
elif check_rhn_registration() and 'migration' not in options.skip and not IS_EL8:
# > ELIF registered to RHN, install subscription-manager prerequs
# > get CA RPM, optionally create host,
# > migrate via rhn-classic-migrate-to-rhsm
Expand Down

0 comments on commit 66f9713

Please sign in to comment.