mirror of
https://opendev.org/x/pyghmi
synced 2026-05-16 19:34:21 +00:00
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
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user