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