Merge "Fix device_type in attach/detach vmedia for Redfish"

This commit is contained in:
Zuul 2024-04-19 13:59:40 +00:00 committed by Gerrit Code Review
commit 27dbc24c85
2 changed files with 11 additions and 2 deletions

View File

@ -1346,7 +1346,8 @@ class RedfishManagement(base.ManagementInterface):
:param image_url: URL of the image to attach, HTTP or HTTPS.
"""
redfish_boot.insert_vmedia(task, image_url, device_type)
redfish_boot.insert_vmedia(task, image_url,
BOOT_DEVICE_MAP_REV[device_type])
@task_manager.require_exclusive_lock
def detach_virtual_media(self, task, device_types=None):
@ -1362,4 +1363,5 @@ class RedfishManagement(base.ManagementInterface):
redfish_boot.eject_vmedia(task)
else:
for device_type in device_types:
redfish_boot.eject_vmedia(task, device_type)
redfish_boot.eject_vmedia(task,
BOOT_DEVICE_MAP_REV[device_type])

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes an issue in Redfish generic attach and detach virtual media
where the virtual media devices were not recognized causing a
failure when attaching or detaching a single virtual media device.