From f312d2af5ed4019ad8bb98f63e54c9dae989f34e Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 13 Apr 2024 13:59:00 +0200 Subject: [PATCH] [PR #8195/6c8f949b backport][stable-8] Redfish: add `Multipart` bool return value to `FirmwareUpdateCapabilities` (#8218) Redfish: add `Multipart` bool return value to `FirmwareUpdateCapabilities` (#8195) * Redfish: add Multipart bool return value to FirmwareUpdateCapabilities Fixes #8194 Signed-off-by: Boris Glimcher * Update changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml Co-authored-by: Felix Fontein --------- Signed-off-by: Boris Glimcher Co-authored-by: Felix Fontein (cherry picked from commit 6c8f949ba950309931d8931f4820b99707898850) Co-authored-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- .../fragments/8194-redfish-add-multipart-to-capabilities.yml | 2 ++ plugins/module_utils/redfish_utils.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml diff --git a/changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml b/changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml new file mode 100644 index 0000000000..6b96d98a7f --- /dev/null +++ b/changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml @@ -0,0 +1,2 @@ +minor_changes: + - redfish_info - add boolean return value ``MultipartHttpPush`` to ``GetFirmwareUpdateCapabilities`` (https://github.com/ansible-collections/community.general/issues/8194, https://github.com/ansible-collections/community.general/pull/8195). diff --git a/plugins/module_utils/redfish_utils.py b/plugins/module_utils/redfish_utils.py index 76d73fad25..6935573d0b 100644 --- a/plugins/module_utils/redfish_utils.py +++ b/plugins/module_utils/redfish_utils.py @@ -1597,6 +1597,8 @@ class RedfishUtils(object): data = response['data'] + result['multipart_supported'] = 'MultipartHttpPushUri' in data + if "Actions" in data: actions = data['Actions'] if len(actions) > 0: