From 1682a83622e0843c78e33035fb74847651886f68 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 6 Aug 2019 10:01:46 -0400 Subject: [PATCH] Allow setting UEFI/BIOS settings without registry Bypass the dependency and value checking when no registry is available to provide that capability. This allows users contending with lesser implementations to at least get somewhat further. Change-Id: I5ac47e42cb6c0e5e2c07ae8c8a68b089e5e2e84a --- pyghmi/redfish/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index a5144642..77277044 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -844,10 +844,10 @@ class Command(object): def _getsyscfg(self): biosinfo = self._do_web_request(self._biosurl, cache=False) - reginfo = None + reginfo = ({}, {}, {}, {}) extrainfo = {} valtodisplay = {} - self.attrdeps = [] + self.attrdeps = {'Dependencies': [], 'Attributes': []} if 'AttributeRegistry' in biosinfo: overview = self._do_web_request('/redfish/v1/') reglist = overview['Registries']['@odata.id']