Skip to content

Commit

Permalink
call rhn-migrate-classic-to-rhsm with --remove-rhn-packages
Browse files Browse the repository at this point in the history
but only if we have removepkgs set (which is the default, though)
  • Loading branch information
evgeni committed Jan 25, 2019
1 parent d405279 commit 141ac71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ def migrate_systems(org_name, activationkey):
options.rhsmargs += " --legacy-user '%s' --legacy-password '%s'" % (options.legacy_login, options.legacy_password)
else:
options.rhsmargs += " --keep"
if options.removepkgs:
options.rhsmargs += " --remove-rhn-packages"
if check_subman_version(SUBSCRIPTION_MANAGER_SERVER_TIMEOUT_VERSION):
exec_failok("/usr/sbin/subscription-manager config --server.server_timeout=%s" % options.timeout)
exec_command("/usr/sbin/rhn-migrate-classic-to-rhsm --org %s --activation-key '%s' %s" % (org_label, activationkey, options.rhsmargs), options.ignore_registration_failures)
Expand Down

0 comments on commit 141ac71

Please sign in to comment.