Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #11236 - add root_pass option #189

Merged
merged 1 commit into from Aug 19, 2015

Conversation

shlomizadok
Copy link
Member

No description provided.

@domcleal
Copy link
Contributor

http://projects.theforeman.org/issues/11236 is the Hammer CLI ticket, this one's for Foreman core only.

Should there be an --ask-* flag too?

@theforeman-bot
Copy link
Member

@shlomizadok, this pull request is currently not mergeable. Please rebase against the master branch and push again.

If you have a remote called 'upstream' that points to this repository, you can do this by running:

    $ git pull --rebase upstream master

This message was auto-generated by Foreman's prprocessor

@shlomizadok
Copy link
Member Author

@domcleal - changed the ticket number (sorry for the confusion) and add --ask-* flag. (thanks for this)

@shlomizadok shlomizadok changed the title fixes #11240 - add root_pass option fixes #11236 - add root_pass option Aug 17, 2015
end

def self.ask_password
prompt = "Enter the root password for the host group: "
Copy link
Contributor

Choose a reason for hiding this comment

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

missing string extraction here

Copy link
Contributor

Choose a reason for hiding this comment

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

(And avoid extracting the trailing space, please)

@shlomizadok
Copy link
Member Author

Extracted

end

def self.ask_password
prompt = _("Enter the root password for the host group:")
Copy link
Contributor

Choose a reason for hiding this comment

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

Unless ask adds it for you, you might need to put the space after the extracted string instead, e.g. _("Enter:") + " " so the UI's correctly spaced.

@shlomizadok
Copy link
Member Author

Added _("Enter:") + " " as I don't want to change ask method

@tstrachota
Copy link
Member

Works well, merging. Thanks @shlomizadok

tstrachota pushed a commit that referenced this pull request Aug 19, 2015
fixes #11236 - add root_pass option
@tstrachota tstrachota merged commit 84db9a6 into theforeman:master Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants