mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 17:32:58 +00:00
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
|
||
|---|---|---|
| .. | ||
| .keep | ||
| 12.6.1.yml | ||
| 11361-scaleway-get-resources-none-type.yml | ||
| 11909-fix-favicon-url.yml | ||
| 11925-lvol-thinpool-percentage-size.yml | ||
| 11926-crypttab-fix-opts-equal-sign.yml | ||
| 11947-zypper-repository-remove-broken.yml | ||
| 11949-apt-rpm-update-kernel-no-new-kernel.yml | ||
| 11951-logstash-plugin-proxy-env-vars.yml | ||
| 11954-puppet-facts-write-error.yml | ||