Werk #17219 · Jan 2, 25
gcp_status: Fix KeyError: 'global'
This change affects users which have configured the rule 'Google Cloud Platform (GCP) Status'.
Previously, Checkmk did not handle incidents correctly, which had set global as an associated location.
This was the corresponding traceback:
File "/omd/sites/mon_home/lib/python3/cmk/plugins/gcp/agent_based/gcp_status.py", line 72, in parse
data.setdefault(constants.RegionMap[location.id_], []).append(incident)
KeyError: 'global'
With this werk, the crash is fixed.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.4.0b1All Editions
- 2.3.0p25CommunityProUltimateUltimate + MT