From 2ec3387e5ed11592ed4a93e13043a99cff51d34c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Jan 2025 08:07:52 -0500 Subject: [PATCH] Fix redfish reset BMC to defaults Change-Id: Ia9810aa9344fafc10d29bd8dfa8d9572f0084c3c --- pyghmi/redfish/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 967b1132..b7f8ced0 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -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