mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-09 04:00:31 -07: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
|
if (not data.get('Inserted', False) and
|
||||||
not data.get('ImageName')):
|
not data.get('ImageName')):
|
||||||
return uri, data
|
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
|
return None, None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Reference in a new issue