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
Provide user hint about IP address in IPA install #207
Conversation
| while True: | ||
| ip = ipautil.user_input("Please provide the IP address to be used for this host name", allow_empty = True) | ||
| if ips: | ||
| msg += " or leave blank to continue with the installation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You appending text to message in cycle, Please provide the IP address to be used for this host name or leave blank to continue with the installation or leave blank to continue with the installation or leave blank to continue with the installation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, my bad. I will fix it.
|
NACK, please see inline comment I'd use 2 different messages: to be clear that we are appending IP addresses |
|
This happens the case where the user keeps entering a IP address and the UI asks again as if it were ignored. |
|
May I propose following? Please use rather |
80fa97a
to
8ef85fe
Compare
| @@ -268,8 +268,12 @@ def add_record_to_hosts(ip, host_name, conf_file=paths.HOSTS): | |||
| def read_ip_addresses(): | |||
| ips = [] | |||
| print("Enter the IP address to use, or press Enter to finish.") | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this print should be removed with this commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbasti-rh OK.
|
I realized that this is somehow inconsistent with getting IP addresses for forwarders DNS forwarders: So IMO we should be more consistent and use: What do you think? |
|
@mbasti-rh I will change message for DNS forwarders from |
|
@Akasurde I would rather keep explicitly |
|
What I meant was to change message for host IP address |
With this fix, user will be notified about pressing enter to proceed with IPA installation procedure, if user has provided valid IP address previously. Fixes https://fedorahosted.org/freeipa/ticket/5949 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
|
LGTM, I'll test later |
|
Fixed upstream |
With this fix, user will be notified about pressing enter
to proceed with IPA installation procedure, if user has
provided valid IP address previously.
Fixes https://fedorahosted.org/freeipa/ticket/5949
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com