This little patch fixes an issue introduced by commit 6a4b428120c2e351ad0f1b4573f50b106844b1fd:

If uninstalling IPA server with KRA enabled a wrong Dogtag version was being passed to KRA uninstaller due to missing config, resulting in uninstallation crash and inability to install new server instance.


--
Martin^3 Babinsky
From acf2ca89dc117ed4a6f963ec91ce87b37b10ea10 Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Tue, 26 May 2015 11:21:45 +0200
Subject: [PATCH] KRA: get the right dogtag version during server uninstall

Ensure that the correct version of dogtag is passed from API object to the KRA
uninstaller during IPA server uninstall.
---
 ipaserver/install/kra.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/kra.py b/ipaserver/install/kra.py
index 966d171dc558a1c301c6522d1cd20bdf26879147..2ff8df5a1f1a7f7cfd32b06cf5e02ff86abdd322 100644
--- a/ipaserver/install/kra.py
+++ b/ipaserver/install/kra.py
@@ -67,7 +67,7 @@ def install(replica_config, options, dm_password):
 
 
 def uninstall():
-    dogtag_constants = dogtag.configured_constants()
+    dogtag_constants = dogtag.configured_constants(api=api)
 
     kra_instance = krainstance.KRAInstance(
         api.env.realm, dogtag_constants=dogtag_constants)
-- 
2.1.0

-- 
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