diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index e5d3e8223..6e7f17d5b 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -124,10 +124,9 @@ def cleanup(func): os.rmdir(ccache_dir) except OSError: pass - try: - os.remove(krb_name + ".ipabkp") - except OSError: - logger.error("Could not remove %s.ipabkp", krb_name) + # During master installation, the .ipabkp file is not created + # Ignore the delete error if it is "file does not exist" + remove_file(krb_name + ".ipabkp") return inner