1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-04 17:32:58 +00:00
community.general/changelogs/fragments
patchback[bot] 064dc97956
[PR #11949/dd5bd733 backport][stable-12] apt_rpm: handle update-kernel rc=1 when no new kernel is available (#11973)
apt_rpm: handle `update-kernel` rc=1 when no new kernel is available (#11949)

* fix(apt_rpm): do not fail when update-kernel finds no new kernel

update-kernel exits with rc=1 when the kernel is already at the latest
version. Handle this case gracefully by checking for the known
"There are no available kernels" message in stderr and returning
changed=False instead of raising an error.

Fixes #10055

* fix(apt_rpm): add changelog fragment for #11949

* Apply suggestion from review



---------


(cherry picked from commit dd5bd733fc)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-02 10:20:50 +02:00
..
.keep
12.6.1.yml Prepare 12.6.1. 2026-04-22 20:51:30 +02:00
11361-scaleway-get-resources-none-type.yml [PR #11918/89d82ab9 backport][stable-12] scaleway: fix NoneType error in get_resources() (#11924) 2026-04-27 21:13:47 +02:00
11909-fix-favicon-url.yml [PR #11909/d57a6672 backport][stable-12] Replace default favicon URL again (#11913) 2026-04-22 20:17:17 +02:00
11925-lvol-thinpool-percentage-size.yml [PR #11925/d0f0e9d0 backport][stable-12] lvol: fix thin-pool creation with percentage size (#11930) 2026-04-29 21:42:57 +02:00
11926-crypttab-fix-opts-equal-sign.yml [PR #11926/c0d3464f backport][stable-12] crypttab: fix option parsing when value contains multiple equal signs (#11929) 2026-04-28 21:27:44 +02:00
11947-zypper-repository-remove-broken.yml [PR #11947/2becfe45 backport][stable-12] zypper_repository: allow state=absent when .repo URL/file is unreachable (#11970) 2026-05-02 10:04:22 +02:00
11949-apt-rpm-update-kernel-no-new-kernel.yml [PR #11949/dd5bd733 backport][stable-12] apt_rpm: handle update-kernel rc=1 when no new kernel is available (#11973) 2026-05-02 10:20:50 +02:00
11951-logstash-plugin-proxy-env-vars.yml [PR #11951/881f64c9 backport][stable-12] logstash_plugin: fix proxy support and improve error reporting (#11971) 2026-05-02 10:04:32 +02:00
11954-puppet-facts-write-error.yml [PR #11954/89e0d070 backport][stable-12] puppet: fix TypeError when writing facts data (#11969) 2026-05-02 10:04:11 +02:00