1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 16:01:55 +00:00
community.general/plugins
patchback[bot] cd50836977
[PR #11001/eb6337c0 backport][stable-11] omapi_host: fix bytes vs. str confusion (#11022)
omapi_host: fix bytes vs. str confusion (#11001)

* omapi_host: fix bytes vs. str confusion

After an update of the control node from Debian
bookworm to trixie, the omapi_host module fails to
work with the error message:

Key of type 'bytes' is not JSON serializable by the
'module_legacy_m2c' profile.

https://github.com/ansible/ansible/issues/85937 had the
same error, but the fix is a bit more intricate here
because the result dict is dynamically generated from
an API response object.

This also fixes unpacking the MAC and IP address and
hardware type, which were broken for Python3.

* Merge suggestion for changelog fragment



* do not unpack_ip twice

Noticed by Felix Fontein <felix@fontein.de>

* mention py3k in changelog fragment, too

---------


(cherry picked from commit eb6337c0c9)

Co-authored-by: mirabilos <tg@mirbsd.org>
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-10-30 20:30:00 +01:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
cache [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
callback [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
connection [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
doc_fragments [PR #10874/750adb43 backport][stable-11] pipx: adjustments for pipx 1.8.0 (#10876) 2025-10-05 07:23:57 +02:00
filter [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
inventory [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
lookup [PR #10965/ce0d06b3 backport][stable-11] onepassword: extend CLI class initialization with additional parameters (#11007) 2025-10-28 21:38:35 +01:00
module_utils [PR #10933/c850e209 backport][stable-11] Add support for client auth in Keycloak cllient secrets module (#10946) 2025-10-19 21:22:44 +02:00
modules [PR #11001/eb6337c0 backport][stable-11] omapi_host: fix bytes vs. str confusion (#11022) 2025-10-30 20:30:00 +01:00
plugin_utils [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00
test [PR #10873/6cd46654 backport][stable-11] Avoid six in plugin code (#10875) 2025-10-05 07:36:47 +02:00