From 7a2a0162332f222c2992dacf2806d6720115d259 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 Jan 2021 08:36:01 -0500 Subject: [PATCH] Fix redfish system config without dependencies Some firmware has incomplete uefi configuration management, have the dependency check disable when such a firmware is encountered. Change-Id: I08935c87a1c29d2ae2c318426dac16b411c38876 --- pyghmi/redfish/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 53c01a49..81196618 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -163,11 +163,11 @@ class SensorReading(object): class AttrDependencyHandler(object): def __init__(self, dependencies, currsettings, pendingsettings): self.dependencymap = {} - for dep in dependencies.get('Dependencies', [[]]): - if dep['Type'] != 'Map': - continue + for dep in dependencies.get('Dependencies', [{}]): if 'Dependency' not in dep: continue + if dep['Type'] != 'Map': + continue if dep['DependencyFor'] in self.dependencymap: self.dependencymap[ dep['DependencyFor']].append(dep['Dependency'])