Repository navigation
Conversation
render_migration joined the header lines and the check tables separately, so the first [[check]] came right after the last [hosts] or [auth.<name>] line. Join them in one list, so every table follows a blank line. A test covers checks after the hosts and after an auth table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also sets --version to the release date, 2026-11-11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
By submitting this pull request, I confirm that:
(Tick each box that applies, e.g.
[x].)develop, and makes one change. (The release:developintomaster.)CHANGELOG.md. (Moved under this release's heading.)python -m ruff check .,python -m ruff format --check .andpython -m mypypass.[[check]]table with--dry-runagainst a real copy, and named the version below. (No new application.)🎯 What does this pull request do?
Merges
developintomasterwith one fix for--migrate. The file that--migratewrites had no blank line before its first[[check]]table. That table came right after the last line of[hosts], or of an[auth.<name>]table when the Bash script used basic auth. The file loaded and worked the same, but it was harder to read. Now every table in the file follows a blank line.🛠️ How does it do it?
render_migrationjoined the header lines and the check tables in two separate joins, so no separator came between them. It now joins them as one list.test_migrated_tables_follow_a_blank_line, migrates two scripts: one whose checks come after an[auth.nagios]table, and one whose checks come right after[hosts]. It fails if any table header follows a line that is not blank. It failed on the first[[check]]in both cases before the fix.__version__is2026-11-11, and the changelog entry is under this pull request.Verified: on
develop(82b6875), every job of the Tests workflow passed (run 43092587417): 143 tests on Python 3.10 and 3.14 on Linux and 3.14 on macOS, and ruff, ruff format, mypy and shellcheck are clean. A migration of a real Bash script with six checks now has the blank line.📝 Documentation changes
None. The README does not describe the layout of the migrated file. The changelog has a Fixed entry under this pull request.
Note
Pull requests that don't follow this template will be closed. This project is maintained by one volunteer (me!) in my spare time, so thanks for your patience with replies.
🤖 Generated with Claude Code