summaryrefslogtreecommitdiffstats
path: root/ipapython/ipautil.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-07-12 13:34:38 +0300
committerAlexander Bokovoy <abokovoy@redhat.com>2011-07-29 12:58:11 +0300
commitc458bdd1332df2cffc14283b62ec67d4bfbec06d (patch)
tree49c183fbfde986bce65bd9e662090772c34aa882 /ipapython/ipautil.py
parent4c4b8a8189b5390628890717c01f2b6cb3e06c6a (diff)
downloadfreeipa-c458bdd1332df2cffc14283b62ec67d4bfbec06d.tar.gz
freeipa-c458bdd1332df2cffc14283b62ec67d4bfbec06d.tar.xz
freeipa-c458bdd1332df2cffc14283b62ec67d4bfbec06d.zip
Improve error reporting on ipa-client-install for LDAP configurationsticket-1369
Re-arrange and improve reported warnings so that messages are clearer for administrators.
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r--ipapython/ipautil.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 6bfebcaeb..da6e94c85 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -1171,21 +1171,3 @@ def bind_port_responder(port, socket_stream=True, socket_timeout=None, responder
s.sendto(responder_data, addr)
finally:
s.close()
-
-def package_installed_name(packages):
- """
- Find out which of mutually exclusive packages is installed
-
- packages is a list of package names to check
-
- Returns package name or None
- """
-
- args = ["/bin/rpm","-q","--queryformat","%{NAME}"]
- for package in packages:
- try:
- (package_name, error, retcode) = run(args+[package])
- return package_name
- except CalledProcessError:
- continue
- return None