1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Redfish: add Multipart bool return value to FirmwareUpdateCapabilities (#8195)

* Redfish: add Multipart bool return value to FirmwareUpdateCapabilities

Fixes #8194

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>

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

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Boris Glimcher 2024-04-12 01:42:55 -04:00 committed by GitHub
parent 9307b76e74
commit 6c8f949ba9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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).

View file

@ -1597,6 +1597,8 @@ class RedfishUtils(object):
data = response['data'] data = response['data']
result['multipart_supported'] = 'MultipartHttpPushUri' in data
if "Actions" in data: if "Actions" in data:
actions = data['Actions'] actions = data['Actions']
if len(actions) > 0: if len(actions) > 0: