ID: 13988
Title: fileinfo: Fix crash for user-configured state in case of missing file
Component: Checks & agents
Level: 1
Class: Bug fix
Version: 2.2.0i1
The check plugin fileinfo reports UNKNOWN by default in case a file is missing. This
behaviour is configurable via the option "State when file is missing" in the
ruleset "Size and age of single files". However, if this option was used, the
check plugin crashed with
TypeError(f"'state' must be a checkmk State constant, got {state}")
if the file was actually missing.