From a82b95a3bb03528ce41acb75794909ce5cae086d Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 5 Nov 2024 19:03:51 +0100 Subject: [PATCH] Make new-ansible no longer remove remove_collection_changelog_entries from changelog.yaml files. --- changelogs/fragments/641-changelog-fix.yml | 2 ++ src/antsibull_build/new_ansible.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/641-changelog-fix.yml diff --git a/changelogs/fragments/641-changelog-fix.yml b/changelogs/fragments/641-changelog-fix.yml new file mode 100644 index 00000000..28595d9f --- /dev/null +++ b/changelogs/fragments/641-changelog-fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - "Fix ``new-ansible`` subcommand so it will not wipe the newly added extra data from ``changelog.yaml`` files (https://github.com/ansible-community/antsibull-build/pull/641)." diff --git a/src/antsibull_build/new_ansible.py b/src/antsibull_build/new_ansible.py index dc2717e6..40234b29 100644 --- a/src/antsibull_build/new_ansible.py +++ b/src/antsibull_build/new_ansible.py @@ -67,6 +67,6 @@ def new_ansible_command() -> int: ) changelog = ChangelogData.ansible(app_ctx.extra["dest_data_dir"]) - changelog.changes.save() + changelog.save() return 0