Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 2ab303eaa46ce3e2b82c0efc45731616afe16b46
https://github.com/tribe29/checkmk/commit/2ab303eaa46ce3e2b82c0efc45731616a…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M cmk/base/plugins/agent_based/utils/checkmk.py
Log Message:
-----------
Make CMKAgentUpdateSection.update_url optional
Without this, a section such as the one reported below
crashes the plugin with an obscure pydantic error.
```
{'params': Parameters({'agent_version': ('ignore', {}),
'agent_version_missmatch': 1,
'legacy_pull_mode': 1,
'restricted_address_mismatch': 1}),
'section_check_mk': {'agentdirectory': '/etc/check_mk',
'agentos': 'linux',
'agentupdate': 'last_check None last_update None aghash
'
'None error The agent updater is not '
'registered at the deployment server',
'datadirectory': '/var/lib/check_mk_agent',
'failedpythonreason': None,
'hostname': 'klapp-0185',
'localdirectory': '/usr/lib/check_mk_agent/local',
'pluginsdirectory':
'/usr/lib/check_mk_agent/plugins',
'spooldirectory': '/var/lib/check_mk_agent/spool',
'sshclient': None,
'version': '2022.11.14'},
'section_cmk_update_agent_status': None}
```
Change-Id: I1212e3c6849982ca7a8cf159083ccae8c6f1650f