Werk #18894: omd restore: Fix error upon encountering empty site directory
| Component | Site management | ||||||||
| Title | omd restore: Fix error upon encountering empty site directory | ||||||||
| Date | Mar 12, 2026 | ||||||||
| Level | Trivial Change | ||||||||
| Class | Bug Fix | ||||||||
| Compatibility | Compatible - no manual interaction needed | ||||||||
| Checkmk versions & editions |
|
Previously, omd restore did not handle an empty site directory correctly, if
executed as a site user. The following error would be displayed.
orig_apache_port = config["APACHE_TCP_PORT"]
KeyError: 'APACHE_TCP_PORT'
This has been fixed. To prevent user errors, omd restore will now verify that
the user targeted by the restore command is a site user.