1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-30 07:50:43 +00:00
community.general/changelogs/fragments
patchback[bot] 358770eb14
[PR #12185/213581be backport][stable-12] fix: treat chdev execution failures as module errors in aix_devices (#12196)
fix: treat chdev execution failures as module errors in aix_devices (#12185)

* fix: treat chdev execution failures as module errors in aix_devices

##### SUMMARY
Fix the aix_devices module so that a failed chdev command is reported as a module failure instead of a successful result.

The previous implementation called fail_json incorrectly by returning success through the normal completion path when chdev returned a non-zero exit status. This could allow a playbook to continue even though the requested device attribute change was not applied.

This change replaces the success-style error handling with proper failure handling in the chdev execution path, making task results consistent with the actual command outcome.

##### ISSUE TYPE
- Bugfix Pull Request

##### COMPONENT NAME
aix_devices

##### ADDITIONAL INFORMATION
The affected code path is in change_device_attr() when the module executes chdev to apply attribute updates.

Before this change:
- chdev could fail
- the module could still report success
- later tasks could run against an unexpected system state

After this change:
- chdev failures are returned through fail_json
- the task stops with an error
- playbook behavior matches the real execution result

```paste below
Before:
module.exit_json(msg="Failed to run chdev.", rc=rc, err=err)

After:
module.fail_json(msg="Failed to run chdev.", rc=rc, err=err)
```

* Add changelog fragment for aix_devices chdev failure fix (#12185)

---------


(cherry picked from commit 213581bef8)

Co-authored-by: Hirofumi Arimoto <hiro0107@users.noreply.github.com>
Co-authored-by: Hirofumi Arimoto <harimoto@jp.ibm.com>
2026-06-05 13:47:30 +02:00
..
.keep
12.6.2.yml Prepare 12.6.2. 2026-05-31 17:59:33 +02:00
11588-nmcli-bond-arp-diff.yml [PR #12085/fdace385 backport][stable-12] nmcli: fix check/diff for bond arp_interval and arp_ip_target (#11588) (#12091) 2026-05-23 21:40:22 +02:00
12106-fix-lxc-create_script.yml [PR #12106/50046965 backport][stable-12] lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12110) 2026-05-27 12:48:57 +02:00
12113-unixy-delegated-host.yml [PR #12113/ef5b22d1 backport][stable-12] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12142) 2026-05-30 20:29:37 +02:00
12121-parted-suse-msdos-type-code.yml [PR #12121/6e6199ae backport][stable-12] parted: ignore MBR partition type codes in flags on SUSE systems (#12146) 2026-05-31 08:35:36 +02:00
12123-htpasswd-crypt-schemes.yml [PR #12123/49ca175f backport][stable-12] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12155) 2026-05-31 16:58:55 +02:00
12124-redfish-setmanagernic-keyerror.yml [PR #12124/b799c6f5 backport][stable-12] redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12173) 2026-06-02 21:18:06 +02:00
12137-pamd-authselect.yml [PR #12137/5d62edc6 backport][stable-12] pamd: handle non-PAM lines in authselect profile files (#12144) 2026-05-31 00:05:00 +02:00
12140-filetree-exclude-regex-error.yml [PR #12140/48db8630 backport][stable-12] filetree lookup: handle invalid exclude regex with AnsibleError (#12183) 2026-06-04 06:28:35 +02:00
12158-incus-windows-ansible-core-221.yml [PR #12163/f9d4f0ad backport][stable-12] Fix incus Windows modules with ansible-core 2.21 (#12178) 2026-06-02 21:18:39 +02:00
12182-opkg-path-prefix.yml [PR #12182/4d66b3da backport][stable-12] opkg - path_prefix needs to be a list (#12189) 2026-06-05 07:34:41 +02:00
12185-aix-devices-chdev-fail.yml [PR #12185/213581be backport][stable-12] fix: treat chdev execution failures as module errors in aix_devices (#12196) 2026-06-05 13:47:30 +02:00
composer-working-dir-and-config-sha256.yaml [PR #12084/8468fea3 backport][stable-12] composer: config file hash to evaluate whether a change occurred (#12131) 2026-05-30 14:34:42 +02:00
portage-depclean-fail_json-msg.yml [PR #12168/1e3da48d backport][stable-12] portage: include msg in depclean failure fail_json (#12174) 2026-06-02 21:17:55 +02:00