Hello,

Remove dead code in ipaserver/install/installutils: read_ip_address().

git grep claims that nothing is calling this function.

-- 
Petr^2 Spacek
From dcb4b959933a9085ddcb98e8a8c61ad52de846e7 Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspa...@redhat.com>
Date: Tue, 10 Nov 2015 12:57:56 +0100
Subject: [PATCH] Remove dead code in ipaserver/install/installutils:
 read_ip_address()

---
 ipaserver/install/installutils.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 9afcb1f3527a8c88451522b65141fd9910146c52..bc1950f1dd4417a324582e2b0e3b7087bef92884 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -261,20 +261,6 @@ def add_record_to_hosts(ip, host_name, conf_file=paths.HOSTS):
     hosts_fd.write(ip+'\t'+host_name+' '+host_name.split('.')[0]+'\n')
     hosts_fd.close()
 
-# TODO: Remove when removing usage from ipa-adtrust-install
-def read_ip_address(host_name, fstore):
-    while True:
-        ip = ipautil.user_input("Please provide the IP address to be used for this host name", allow_empty = False)
-        try:
-            ip_parsed = ipautil.CheckedIPAddress(ip, match_local=True)
-        except Exception as e:
-            print("Error: Invalid IP Address %s: %s" % (ip, e))
-            continue
-        else:
-            break
-
-    return ip_parsed
-
 
 def read_ip_addresses():
     ips = []
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to