Skip to content

Commit

Permalink
Redfish: add Multipart bool return value to `FirmwareUpdateCapabili…
Browse files Browse the repository at this point in the history
…ties` (ansible-collections#8195)

* Redfish: add Multipart bool return value to FirmwareUpdateCapabilities

Fixes ansible-collections#8194

Signed-off-by: Boris Glimcher <[email protected]>

* Update changelogs/fragments/8194-redfish-add-multipart-to-capabilities.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Signed-off-by: Boris Glimcher <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
glimchb and felixfontein authored Apr 12, 2024
1 parent 9307b76 commit 6c8f949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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).
2 changes: 2 additions & 0 deletions plugins/module_utils/redfish_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,8 @@ def get_firmware_update_capabilities(self):

data = response['data']

result['multipart_supported'] = 'MultipartHttpPushUri' in data

if "Actions" in data:
actions = data['Actions']
if len(actions) > 0:
Expand Down

0 comments on commit 6c8f949

Please sign in to comment.