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 Nov 30, 2016
1 parent acf9f8e commit 5e0f650
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 @@ -192,6 +192,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"
exec_failexit("/usr/sbin/rhn-migrate-classic-to-rhsm --org %s --activation-key '%s' %s" % (org_label, activationkey, options.rhsmargs))
exec_failexit("subscription-manager config --rhsm.baseurl=https://%s/pulp/repos" % options.foreman_fqdn)

Expand Down

0 comments on commit 5e0f650

Please sign in to comment.