Werk #15608 · Apr 27, 23
Show explanation message instead of KeyError: 'extensions'
Previously, if a folder is moved or deleted, which is in use by a DCD connection, the following error was shown.
09:37:31 ERROR An exception occured
Traceback (most recent call last):
File "/omd/sites/heute/lib/python3/cmk/cee/dcd/connectors/piggyback.py", line 260, in _execute_phase2
created_host_names = self._create_new_hosts(hosts_to_create)
File "/omd/sites/heute/lib/python3/cmk/cee/dcd/connectors/piggyback.py", line 479, in _create_new_hosts
created_host_names = self._create_piggyback_hosts(hosts_to_create)
File "/omd/sites/heute/lib/python3/cmk/cee/dcd/connectors/piggyback.py", line 504, in _create_piggyback_hosts
assert_never(result)
File "/omd/sites/heute/lib/python3.11/typing.py", line 2462, in assert_never
raise AssertionError(f"Expected code to be unreachable, but got: {value}")
AssertionError: Expected code to be unreachable, but got: None
With this Werk, a debugging message will be shown instead.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- DCD
- Versions:
- 2.3.0b1CommunityProUltimateUltimate + MT
- 2.2.0b7CommunityProUltimateUltimate + MT
- 2.1.0p28CommunityProUltimate + MT