1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-10 18:15:39 +00:00
Commit graph

5 commits

Author SHA1 Message Date
Alexei Znamensky
5b27656539
Merge e8207f7d07 into 877f20f278 2026-06-06 01:40:29 -04:00
Alexei Znamensky
b799c6f579
redfish_config: fix KeyError: 'ret' when SetManagerNic cannot find a matching NIC (#12124)
* fix(redfish_config): return proper error dict when manager NIC not found

get_manager_ethernet_uri() returned an empty dict {} when no matching NIC
was found, causing a KeyError on 'ret' in main(). Now returns a consistent
{"ret": False, "msg": ...} like all other error paths in the function.

Fixes #5892

* feat(changelog): add fragment for PR 12124
2026-06-02 18:25:26 +02:00
Alexei Znamensky
933af9ed03 refactor(module_utils): replace module.params.get() with subscript access
AnsibleModule guarantees every declared param key exists in module.params,
so .get(key) and .get(key, default) are equivalent to [key]. Replace them
with the cleaner subscript form across multiple module_utils and modules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 21:49:41 +12:00
Alexei Znamensky
53397c081a
Replace % string formatting with f-strings across multiple plugins (#11908)
* Replace % string formatting with f-strings across multiple plugins

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

* Add changelog fragment for PR 11908

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 07:06:27 +12:00
Felix Fontein
4fa82b9617
Make all doc fragments, module utils, and plugin utils private (#11896)
* Make all doc fragments private.

* Make all plugin utils private.

* Make all module utils private.

* Reformat.

* Changelog fragment.

* Update configs and ignores.

* Adjust unit test names.
2026-04-20 20:16:26 +02:00
Renamed from plugins/module_utils/redfish_utils.py (Browse further)