1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-04 09:23:02 +00:00
community.general/plugins
Alexei Znamensky dd5bd733fc
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

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-05-02 10:09:54 +02:00
..
action Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback selective callback plugin: route output through display to honour ANSIBLE_LOG_PATH (#11927) 2026-04-29 21:25:43 +02:00
connection Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
doc_fragments Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00
filter Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
inventory Fix nmap inventory plugin: skip setting reserved 'name' variable (#11893) 2026-04-25 21:07:19 +02:00
lookup lmdb_kv lookup, guide_alicloud: fix deprecated list-format vars: in examples and docs (#11942) 2026-04-30 12:36:13 +12:00
module_utils snap: add devmode parameter to support --devmode flag (#11952) 2026-05-02 10:46:23 +12:00
modules apt_rpm: handle update-kernel rc=1 when no new kernel is available (#11949) 2026-05-02 10:09:54 +02:00
plugin_utils Replace % string formatting with f-strings across multiple plugins (#11908) 2026-04-22 07:06:27 +12:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00