diff --git a/library/ipatest.py b/library/ipatest.py index a421bfac3dba0035af5ace154b4233dee5389698..0d7ff30b193c3076068a1cb27599b51890814939 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: