Skip to content

Commit

Permalink
Made suggested revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Pisciotta committed Mar 6, 2018
1 parent 909d017 commit f9889ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,8 +1164,6 @@ def exec_service(service, command, failonerror=True):
create_host()
configure_subscription_manager()
migrate_systems(options.org, options.activationkey)
if 'foreman' not in options.skip:
delete_file('/etc/rhsm/facts/location.facts')
if options.enablerepos:
enable_repos()
elif options.new_capsule:
Expand Down Expand Up @@ -1261,6 +1259,9 @@ def exec_service(service, command, failonerror=True):
if options.enablerepos:
enable_repos()

if options.location and 'foreman' in options.skip:
delete_file('/etc/rhsm/facts/location.facts')

if not options.remove and not options.new_capsule:
# > IF not removing, install Katello agent, optionally update host,
# > optionally clean and install Puppet agent
Expand Down

0 comments on commit f9889ee

Please sign in to comment.