1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-09 03:58:59 +00:00
community.general/changelogs/fragments
patchback[bot] 876f8ca18c
[PR #12185/213581be backport][stable-13] fix: treat chdev execution failures as module errors in aix_devices (#12197)
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:25 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
13.1.0.yml The next release will be 13.1.0. 2026-05-30 13:48:09 +02:00
11998-xenserver-disk-uuid-vdi-type.yml [PR #12119/9208cbfd backport][stable-13] xenserver_guest_info: add VDI uuid and vdi_type to disk info (#12141) 2026-05-30 20:29:53 +02:00
12032-slack-files-support.yml [PR #12032/580e8ad3 backport][stable-13] slack: support file upload (#12126) 2026-05-30 15:11:47 +02:00
12087-keycloak-realm-max-secondary-auth-failures.yml [PR #12087/7b01bcba backport][stable-13] keycloak_realm - add `max_secondary_auth_failures` parameter to configure brute force detection for secondary authentication mechanisms. (#12177) 2026-06-02 21:18:01 +02:00
12106-fix-lxc-create_script.yml [PR #12106/50046965 backport][stable-13] lxc_container: Fix create_script in plugins/module_utils/_lxc.py (#12111) 2026-05-27 12:49:00 +02:00
12113-unixy-delegated-host.yml [PR #12113/ef5b22d1 backport][stable-13] unixy callback: fix KeyError when task is delegated to host without ansible_host set (#12143) 2026-05-30 20:29:46 +02:00
12120-consul-kv-empty-value.yml [PR #12120/d46ce24a backport][stable-13] consul_kv: add empty_value option for null Consul values (#12153) 2026-05-31 16:59:05 +02:00
12121-parted-suse-msdos-type-code.yml [PR #12121/6e6199ae backport][stable-13] parted: ignore MBR partition type codes in flags on SUSE systems (#12147) 2026-05-31 08:35:40 +02:00
12123-htpasswd-crypt-schemes.yml [PR #12123/49ca175f backport][stable-13] htpasswd: fix hash_scheme aliases and Apache-compatible bcrypt (#12156) 2026-05-31 16:58:57 +02:00
12124-redfish-setmanagernic-keyerror.yml [PR #12124/b799c6f5 backport][stable-13] redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12176) 2026-06-02 21:18:12 +02:00
12137-pamd-authselect.yml [PR #12137/5d62edc6 backport][stable-13] pamd: handle non-PAM lines in authselect profile files (#12145) 2026-05-31 00:05:03 +02:00
12140-filetree-exclude-regex-error.yml [PR #12140/48db8630 backport][stable-13] filetree lookup: handle invalid exclude regex with AnsibleError (#12184) 2026-06-04 06:28:33 +02:00
12158-incus-windows-ansible-core-221.yml [PR #12163/f9d4f0ad backport][stable-13] Fix incus Windows modules with ansible-core 2.21 (#12179) 2026-06-02 21:18:49 +02:00
12182-opkg-path-prefix.yml [PR #12182/4d66b3da backport][stable-13] opkg - path_prefix needs to be a list (#12190) 2026-06-05 07:34:43 +02:00
12185-aix-devices-chdev-fail.yml [PR #12185/213581be backport][stable-13] fix: treat chdev execution failures as module errors in aix_devices (#12197) 2026-06-05 13:47:25 +02:00
composer-working-dir-and-config-sha256.yaml [PR #12084/8468fea3 backport][stable-13] composer: config file hash to evaluate whether a change occurred (#12132) 2026-05-30 15:12:16 +02:00
portage-depclean-fail_json-msg.yml [PR #12168/1e3da48d backport][stable-13] portage: include msg in depclean failure fail_json (#12175) 2026-06-02 21:18:25 +02:00