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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user