From e908ee4b526cba7f286e5233aa8ac93bbd9234a5 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 2 Oct 2017 19:03:18 +0200
Subject: [PATCH] library/ipatest.py: Additional ccache removal

---
 library/ipatest.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/library/ipatest.py b/library/ipatest.py
index a421bfac..0d7ff30b 100644
--- a/library/ipatest.py
+++ b/library/ipatest.py
@@ -187,6 +187,12 @@ def main():
     host_principal = 'host/%s@%s' % (hostname, realm)
     sssd = True
 
+    # Remove IPA_DNS_CCACHE remain if it exists
+    try:
+        os.remove(paths.IPA_DNS_CCACHE)
+    except OSError:
+        pass
+
     krb5_keytab_ok = False
     ca_crt_exists = os.path.exists(paths.IPA_CA_CRT)
     try:
-- 
GitLab