mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Redfish: Added workaround for Supermicro in VirtualMediaInsert command to treat 'NotConnected' slots as empty
Signed-off-by: Mike Raineri <michael.raineri@dell.com>
This commit is contained in:
parent
6d0bcec1cb
commit
b74b598d48
2 changed files with 7 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- redfish_command - add workaround in ``VirtualMediaInsert`` for Supermicro systems to treat slots marked as ``NotConnected`` as empty (https://github.com/ansible-collections/community.general/issues/6969).
|
|
@ -2620,6 +2620,11 @@ class RedfishUtils(object):
|
|||
if (not data.get('Inserted', False) and
|
||||
not data.get('ImageName')):
|
||||
return uri, data
|
||||
# WORKAROUND
|
||||
# Supermicro systems do not properly clear out ImageName when media is ejected
|
||||
if vendor == 'Supermicro':
|
||||
if data.get('ConnectedVia') == 'NotConnected':
|
||||
return uri, data
|
||||
return None, None
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue