Skip to content

Commit

Permalink
Simplify calls to subscription-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sideangleside committed Oct 11, 2016
1 parent fd52316 commit d54c9dc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,9 @@ def check_rhn_registration():
return False

def enable_repos():
for repo in options.enablerepos.split(','):
print_running("Enabling repo - %s" % repo)
exec_failok("/usr/sbin/subscription-manager repos --enable %s" % repo)


repostoenable = " ".join(['--enable=%s' % i for i in options.enablerepos.split(',')])
print_running("Enabling repositories - %s" % option.enablerepos)
exec_failok("subscription-manager repos %s" % repostoenable)

def get_api_port():
configparser = SafeConfigParser()
Expand Down

1 comment on commit d54c9dc

@origliante
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on line 509 there's a typo: option should be options (bug) @sideangleside #117

Thanks keep up the good work :-)

Please sign in to comment.