Skip to content

Commit

Permalink
Merge pull request #140 from sideangleside/fix-legacy-opts-again
Browse files Browse the repository at this point in the history
fix legacy opts accidentally removed in 15c6d15
  • Loading branch information
evgeni authored Dec 3, 2016
2 parents 34635cc + 26eb953 commit fc8cb2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,10 @@ class MEOptions:
if not options.password and not options.no_foreman:
options.password = getpass.getpass("%s's password:" % options.login)

# > If user wants to purge profile from RHN/Satellite 5, credentials are needed.
if options.legacy_purge and not options.legacy_password:
options.legacy_password = getpass.getpass("Legacy User %s's password:" % options.legacy_login)

# > Puppet won't be installed if Foreman Host shall not be created
if options.no_foreman:
options.no_puppet = True
Expand All @@ -762,6 +766,8 @@ class MEOptions:
print "ORG - %s" % options.org
print "ACTIVATIONKEY - %s" % options.activationkey
print "UPDATE - %s" % options.update
print "LEGACY LOGIN - %s" % options.legacy_login
print "LEGACY PASSWORD - %s" % options.legacy_password

# > Exit if the user isn't root.
# Done here to allow an unprivileged user to run the script to see
Expand Down

0 comments on commit fc8cb2a

Please sign in to comment.