<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/21/2013 12:47 PM, Martin Kosek
wrote:<br>
</div>
<blockquote cite="mid:5126094E.1040503@redhat.com" type="cite">
<pre wrap="">On 02/20/2013 10:31 AM, Tomas Babej wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
When installing / uninstalling IPA client, the checks that
determine whether IPA client is installed now take the existence
of /etc/ipa/default.conf into consideration.
The client will not uninstall unless either something is backed
up or /etc/ipa/default.conf file does exist.
The client will not install if something is backed up or
default.conf file does exist (unless it's installation on master).
<a class="moz-txt-link-freetext" href="https://fedorahosted.org/freeipa/ticket/3331">https://fedorahosted.org/freeipa/ticket/3331</a>
Tomas
</pre>
</blockquote>
<pre wrap="">
Can we create a function testing if ipa client is installed to avoid
duplication of the decision logic? Something like is_ipa_configured present in
ipaserver/install/installutils.py.
Keep in mind that we cannot use ipaserver package as it may not be present on
client.
Martin
</pre>
</blockquote>
Moved to is_ipa_client_installed function to ipautils.py<br>
<br>
Updated patch attached.<br>
<br>
Tomas<br>
<br>
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
</body>
</html>