mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[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 <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>
(cherry picked from commit 6c8f949ba9
)
Co-authored-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com>
This commit is contained in:
parent
66200a5da5
commit
f312d2af5e
2 changed files with 4 additions and 0 deletions
|
@ -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).
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue