2
0
mirror of https://opendev.org/x/pyghmi synced 2026-01-11 02:32:31 +00:00

Fix redfish reset BMC to defaults

Change-Id: Ia9810aa9344fafc10d29bd8dfa8d9572f0084c3c
This commit is contained in:
Jarrod Johnson
2025-01-15 08:07:52 -05:00
parent 63cf0e2185
commit 2ec3387e5e

View File

@@ -850,7 +850,7 @@ class Command(object):
rc = bmcinfo.get('Actions', {}).get('#Manager.ResetToDefaults', {})
actinf = rc.get('ResetType@Redfish.AllowableValues', [])
if 'ResetAll' in actinf:
acturl = actinf.get('target', None)
acturl = rc.get('target', None)
if acturl:
self._do_web_request(acturl, {'ResetType': 'ResetAll'})
return