Werk #13108: Fix NotADirectoryError on user profile cleanup background job

Component User interface
Title Fix NotADirectoryError on user profile cleanup background job
Date Aug 24, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

If LDAP connections were used, the file "ldap_MYCONNECTION_sync_time.mk" could cause error entries in ~/var/log/web.log, because the file was treated as directory.

From now on, files in ~/var/check_mk/web will be ignored on cleanup because we only want to cleanup abandoned user directories.

To the list of all Werks