From c458bdd1332df2cffc14283b62ec67d4bfbec06d Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 12 Jul 2011 13:34:38 +0300 Subject: Improve error reporting on ipa-client-install for LDAP configurations Re-arrange and improve reported warnings so that messages are clearer for administrators. --- ipapython/ipautil.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'ipapython') 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 -- cgit