diff options
| author | Abhijeet Kasurde <akasurde@redhat.com> | 2016-11-02 13:33:37 +0530 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-11-11 13:50:51 +0100 |
| commit | 28bc54f91dfbd76887180fa67ceecb46977a4fb8 (patch) | |
| tree | 7fbdfd071b5f63c9f6cdf71d2acb49d966deb4d3 | |
| parent | 09423acb6574a3773d7783f9ddec022bed3539c8 (diff) | |
| download | freeipa-28bc54f91dfbd76887180fa67ceecb46977a4fb8.tar.gz freeipa-28bc54f91dfbd76887180fa67ceecb46977a4fb8.tar.xz freeipa-28bc54f91dfbd76887180fa67ceecb46977a4fb8.zip | |
Provide user hint about IP address in IPA install
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>
Reviewed-By: Martin Basti <mbasti@redhat.com>
| -rw-r--r-- | ipaserver/install/installutils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 9b445985f..9e509e461 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -267,9 +267,11 @@ 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.") + msg_first = "Please provide the IP address to be used for this host name" + msg_other = "Enter an additional IP address, or press Enter to skip" while True: - ip = ipautil.user_input("Please provide the IP address to be used for this host name", allow_empty = True) + msg = msg_other if ips else msg_first + ip = ipautil.user_input(msg, allow_empty=True) if not ip: break try: |
