From dc121ebd77fdd3b8a6186706c1cc6683bc5679bb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Aug 2019 16:04:07 -0400 Subject: [PATCH] Amend to add back a missing portion of partial patch The previous change was only half of the actual change. Change-Id: Iaecc0279eb4252af070c925d86466c8a6307b9de --- pyghmi/redfish/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 35a2cb9e..082037dc 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -125,7 +125,8 @@ def natural_sort(iterable): class SensorReading(object): - def __init__(self, healthinfo, sensor=None, value=None, units=None): + def __init__(self, healthinfo, sensor=None, value=None, units=None, + unavailable=False): if sensor: self.name = sensor['name'] else: @@ -136,6 +137,7 @@ class SensorReading(object): self.state_ids = None self.imprecision = None self.units = units + self.unavailable = unavailable class AttrDependencyHandler(object):